次の方法で共有


IVsApplicationConfiguration.FileExists Method

Returns a value indicating whether a configuration file exists on disk.

Namespace:  Microsoft.VisualStudio.ManagedInterfaces9
Assembly:  Microsoft.VisualStudio.ManagedInterfaces.WCF (in Microsoft.VisualStudio.ManagedInterfaces.WCF.dll)

Syntax

'宣言
Function FileExists As Boolean
bool FileExists()
bool FileExists()
abstract FileExists : unit -> bool 
function FileExists() : boolean

Return Value

Type: Boolean
true if the file exists; otherwise false.

Remarks

Use this method to determine whether a configuration file for given hierarchy/itemid exists. The QueryEditConfiguration method attempts to create a configuration file if one does not exist. The method returns false if the configuration file exists and cannot be opened for editing, or if the file does not exist and cannot be created.

.NET Framework Security

See Also

Reference

IVsApplicationConfiguration Interface

Microsoft.VisualStudio.ManagedInterfaces9 Namespace