FileCodeGroup.AttributeString Właściwość

Definicja

Pobiera ciąg reprezentujący atrybuty instrukcji zasad dla grupy kodu.

public:
 virtual property System::String ^ AttributeString { System::String ^ get(); };
public override string AttributeString { get; }
member this.AttributeString : string
Public Overrides ReadOnly Property AttributeString As String

Wartość właściwości

Zawsze wartość null.

Przykłady

Poniższy kod przedstawia użycie AttributeString właściwości w celu pobrania atrybutów grupy kodu. Ten przykład kodu jest częścią większego przykładu udostępnionego FileCodeGroup dla klasy .

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

Uwagi

FileCodeGroup nie używa elementu AttributeString, więc ta właściwość jest zawsze null.

Dotyczy