Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: System.String[in] The name of the file to check for existence.
fOnlyCheckOnDisk
Type: System.Int32[in] Flag indicating check only on disk. Value is true to check only on disk, not in the RDT.
pfExists
Type: System.Int32%[out] Flag indicating that the file exists. Returns true if the file exists.
Return Value
Type: System.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.