Freigeben über


FileCodeGroup.AttributeString-Eigenschaft

Ruft eine Zeichenfolgendarstellung der Attribute der Richtlinienanweisung für die Codegruppe ab.

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property AttributeString As String
'Usage
Dim instance As FileCodeGroup
Dim value As String

value = instance.AttributeString
public override string AttributeString { get; }
public:
virtual property String^ AttributeString {
    String^ get () override;
}
/** @property */
public String get_AttributeString ()
public override function get AttributeString () : String

Eigenschaftenwert

Immer NULL (Nothing in Visual Basic).

Hinweise

FileCodeGroup verwendet AttributeString nicht, sodass diese Eigenschaft immer NULL (Nothing in Visual Basic) ist.

Beispiel

Im folgenden Code wird die Verwendung der AttributeString-Eigenschaft zum Abrufen der Attribute für die Codegruppe veranschaulicht. Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels für die FileCodeGroup-Klasse.

If (Not fileCodeGroup.AttributeString Is Nothing) Then
    Throw New NullReferenceException( _
        "AttributeString property is not empty")
End If
if (fileCodeGroup.AttributeString != null)
{
    throw new NullReferenceException(
        "The AttributeString property should be null.");
}
if ( fileCodeGroup->AttributeString != nullptr )
{
   throw gcnew NullReferenceException(
      L"The AttributeString property should be null." );
}
if (fileCodeGroup.get_AttributeString() != null) {
    throw new NullReferenceException("The AttributeString property "
        + "should be null.");
}

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

FileCodeGroup-Klasse
FileCodeGroup-Member
System.Security.Policy-Namespace