FileCodeGroup.AttributeString Свойство

Определение

Получает строковое представление атрибутов инструкции политики для группы кода.

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

Значение свойства

Всегда null.

Примеры

В следующем коде показано использование AttributeString свойства для получения атрибутов для группы кода. Этот пример входит в состав более крупного примера использования класса FileCodeGroup.

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

Комментарии

FileCodeGroup не использует AttributeString, поэтому это свойство всегда nullимеет значение .

Применяется к