指定したツールの名前を取得します。
名前空間 : Microsoft.VisualStudio.VCProjectEngine
アセンブリ : Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)
構文
'宣言
ReadOnly Default Property toolName As String
'使用
Dim instance As VCALinkTool
Dim value As String
value = instance
string this { get; }
property String^ default {
String^ get ();
}
function get toolName () : String
プロパティ値
型 : System.String
指定されたツールの名前。
解説
このサンプル コードをコンパイルして実行する方法については、「方法 : プロジェクト モデル機能拡張のプログラム例をコンパイルする」を参照してください。
例
[Visual Basic]
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs, tools As IVCCollection
Dim cfg As VCConfiguration
Dim tool As VCALinkTool
Dim msg As String
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
cfg = cfgs.Item(1)
tool = cfg.Tools("VCAlinkTool")
msg += "Tool kind: " & tool.ToolKind & vbCr
msg += "Tool name: " & tool.ToolName & vbCr
msg += "Tool path: " & tool.ToolPath
MsgBox(msg)
End Sub
End Module
アクセス許可
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。