Rule.GetProperty(String) 方法

定義

取得具有指定名稱的屬性。Gets the property with the specified name.

public:
 Microsoft::Build::Framework::XamlTypes::BaseProperty ^ GetProperty(System::String ^ propertyName);
public Microsoft.Build.Framework.XamlTypes.BaseProperty GetProperty (string propertyName);
member this.GetProperty : string -> Microsoft.Build.Framework.XamlTypes.BaseProperty
Public Function GetProperty (propertyName As String) As BaseProperty

參數

propertyName
String

屬性的名稱。The name of the property.

傳回

傳回具有指定的名稱的屬性,如果找不到任何具有相符名稱的屬性則為 null。Returns the property with the specified name, or null if no property with a matching name is found.

適用於