次の方法で共有

Facebook x.com LinkedIn 電子メール

VCFilter.UniqueIdentifier プロパティ

フィルターのローカライズできない名前を指定します。

名前空間: Microsoft.VisualStudio.VCProjectEngine
アセンブリ: Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)

構文

'宣言
Property UniqueIdentifier As String
 Get
 Set
string UniqueIdentifier { get; set; }
property String^ UniqueIdentifier {
 String^ get ();
 void set (String^ value);
}
abstract UniqueIdentifier : string with get, set
function get UniqueIdentifier () : String
function set UniqueIdentifier (value : String)

プロパティ値

型: System.String
フィルターの名前を表す文字列。

解説

このサンプル コードをコンパイルして実行する方法については、「方法 : プロジェクト モデル機能拡張のプログラム例をコンパイルする」を参照してください。

統合開発環境 (IDE) で UniqueIdentifier を使用するサンプル コードを次に示します。

' Macro code.
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
 Sub Test()
 Dim idx As Integer
 Dim filter As VCFilter
 Dim col As IVCCollection
 Dim prj, prj2 As VCProject
 prj = DTE.Solution.Projects.Item(1).Object
 col = prj.Filters
 For idx = 1 To col.Count
 filter = col.Item(idx)
 MsgBox(filter.UniqueIdentifier)
 filter.UniqueIdentifier = "xx"
 MsgBox(filter.UniqueIdentifier)
 Next
 End Sub
End Module

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

VCFilter インターフェイス

Microsoft.VisualStudio.VCProjectEngine 名前空間


  • Last updated on 2011年08月09日