Partager via


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

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

Return Value

Type: System.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