combit List & Label 29 - .NET Hilfe
combit.Reporting.Dom Namespace / ProjectBase Klasse / UserVariables Eigenschaft
Beispiele


In diesem Thema
    UserVariables Eigenschaft
    In diesem Thema
    Mit dieser Eigenschaft lässt sich auf bereits bestehende Benutzervariablen zugreifen oder neue anlegen.
    Syntax
    'Deklaration
     
    
    Public ReadOnly Property UserVariables As CollectionUserVariables
    public CollectionUserVariables UserVariables {get;}
    public:
    property CollectionUserVariables^ UserVariables {
       CollectionUserVariables^ get();
    }
    Beispiele
    // add user variable
    UserVariable userVar = new UserVariable(proj.UserVariables); 
     
    // set properties
    userVar.Name = "@User01"; 
    userVar.Contents = "1234"; 
     
    // iterate all user variables
    foreach(UserVariable userVariable in proj.UserVariables) 
    { 
        string userVarName = userVariable.Name; 
    }
    Anforderungen

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

    Siehe auch