Localization.GetComments(Object) 方法

定義

從指定的項目取得 CommentsProperty 附加屬性的值。

public:
 static System::String ^ GetComments(System::Object ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Object))]
public static string GetComments (object element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Object))>]
static member GetComments : obj -> string
Public Shared Function GetComments (element As Object) As String

參數

element
Object

Object,表示您要擷取其附加屬性的項目。

傳回

String 值,表示當地語系化註解。

屬性

範例

下列程式碼範例示範如何擷取為文字區塊定義的當地語系化批註。

備註

當地語系化批註是應用程式開發人員所包含的自由格式文字。

適用於

另請參閱