AddInToken.Description 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得載入宏的描述。
public:
property System::String ^ Description { System::String ^ get(); };
public string Description { get; }
member this.Description : string
Public ReadOnly Property Description As String
屬性值
外掛的描述,或 null 是屬性中未指定 AddInAttribute 描述。
範例
以下範例顯示 , Name, AddInFullNameDescriptionAssemblyNamePublisher及屬性對主控台的值。Version 此程式碼範例是本類別更大範例 AddInToken 的一部分。
// Show the token properties for each token
// in the AddInToken collection (tokens),
// preceded by the add-in number in [] brackets.
int tokNumber = 1;
foreach (AddInToken tok in tokens)
{
Console.WriteLine(String.Format("\t[{0}]: {1} - {2}\n\t{3}\n\t\t {4}\n\t\t {5} - {6}",
tokNumber.ToString(),
tok.Name,
tok.AddInFullName,
tok.AssemblyName,
tok.Description,
tok.Version,
tok.Publisher));
tokNumber++;
}
' Show the token properties for each token
' in the AddInToken collection (tokens),
' preceded by the add-in number in [] brackets.
Dim tokNumber As Integer = 1
For Each tok As AddInToken In tokens
Console.WriteLine(vbTab & "{0}: {1} - {2}" &
vbLf & vbTab & "{3}" &
vbLf & vbTab & "{4}" &
vbLf & vbTab & "{5} - {6}",
tokNumber.ToString, tok.Name,
tok.AddInFullName, tok.AssemblyName,
tok.Description, tok.Version, tok.Publisher)
tokNumber = tokNumber + 1
Next
備註
此屬性可取得屬性中指定的 AddInAttribute 外加內容描述。