VCProjectEngineObjectClass.IsSystemInclude 方法
如果指定的檔案是在 <drive>:\Program Files\Microsoft Visual Studio 8\VC\include 中,則傳回 true。
命名空間: Microsoft.VisualStudio.VCProjectEngine
組件: Microsoft.VisualStudio.VCProjectEngine (在 Microsoft.VisualStudio.VCProjectEngine.dll 中)
語法
'宣告
Public Overridable Function IsSystemInclude ( _
Include As String _
) As Boolean
public virtual bool IsSystemInclude(
string Include
)
public:
virtual bool IsSystemInclude(
[InAttribute] String^ Include
)
abstract IsSystemInclude :
Include:string -> bool
override IsSystemInclude :
Include:string -> bool
public function IsSystemInclude(
Include : String
) : boolean
參數
- Include
型別:System.String
必要項。想要檢查的檔案名稱。您必須提供檔案的完整路徑。
傳回值
型別:System.Boolean
如果檔案是系統檔案,則為 true,否則為 false。
實作
VCProjectEngine.IsSystemInclude(String)
備註
請勿執行個體化VCProjectEngineObjectClass。具現化VCProjectEngineObject相反的如下所示:
Dim Engine As VCProjectEngine
Engine = New VCProjectEngineObject()
範例
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
Dim prj As VCProject
Dim cfgs As IVCCollection
Dim cfg As VCConfiguration
Dim ProjEng As VCProjectEngine
prj = DTE.Solution.Projects.Item(1).Object
cfgs = prj.Configurations
ProjEng = cfgs.VCProjectEngine
MsgBox(ProjEng.IsSystemInclude("C:\Program Files\Microsoft _
Visual Studio .NET 2003\Vc7\PlatformSDK\Include\windows.h"))
End Sub
End Module
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。