Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines if the specified file exists in the running document table (RDT) or on disk.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Public Overridable Function Exists ( _
wszFilename As String, _
fOnlyCheckOnDisk As Integer, _
<OutAttribute> ByRef pfExists As Integer _
) As Integer
public virtual int Exists(
string wszFilename,
int fOnlyCheckOnDisk,
out int pfExists
)
public:
virtual int Exists(
[InAttribute] String^ wszFilename,
[InAttribute] int fOnlyCheckOnDisk,
[OutAttribute] int% pfExists
)
abstract Exists :
wszFilename:string *
fOnlyCheckOnDisk:int *
pfExists:int byref -> int
override Exists :
wszFilename:string *
fOnlyCheckOnDisk:int *
pfExists:int byref -> int
public function Exists(
wszFilename : String,
fOnlyCheckOnDisk : int,
pfExists : int
) : int
Parameters
wszFilename
Type: String[in] The name of the file to check for existence.
fOnlyCheckOnDisk
Type: Int32[in] Flag indicating check only on disk. Value is true to check only on disk, not in the RDT.
pfExists
Type: Int32%[out] Flag indicating that the file exists. Returns true if the file exists.
Return Value
Type: Int32
Returns S_OK if the method is successful, E_FAIL if the method fails.
Implements
IVsMSBuildTaskFileManager.Exists(String, Int32, Int32%)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.