combit List & Label 29 - .NET Help
combit.Reporting Namespace / ProjectParameters Class / Item Property
Example


In This Topic
    Item Property (ProjectParameters)
    In This Topic
    The name of the project parameter is passed as string. Is usually used for custom parameter.
    Overload List
    OverloadDescription
    The name of the project parameter is passed as string. Is usually used for custom parameter.  
    The name of the project parameter is passed as a LlProjectParameter Enumeration. Is usually used for predefined parameters.  
    Example
    Shows accessing project parameters.
    // Query custom project parameter
    string myParamValue = LL.ProjectParameters["MyParamName"].Value;
    
    // Query e-Mail addressee (predefined project parameter) by a project
    string mailTo = LL.ProjectParameters[LlProjectParameter.MailTo].ValueFromProjectFile(@"C:\temp\sample.lst");
    ' Query custom project parameter
    Dim myParamValue As String = LL.ProjectParameters("MyParamName").Value
    
    ' Query e-Mail addressee (predefined project parameter) by a project
    Dim mailTo As String = LL.ProjectParameters(LlProjectParameter.MailTo).ValueFromProjectFile("C:\temp\sample.lst")
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also