Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Determines if a file exists in the 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
Function Exists ( _
wszFilename As String, _
fOnlyCheckOnDisk As Integer, _
<OutAttribute> ByRef pfExists As Integer _
) As Integer
int Exists(
string wszFilename,
int fOnlyCheckOnDisk,
out int pfExists
)
int Exists(
[InAttribute] String^ wszFilename,
[InAttribute] int fOnlyCheckOnDisk,
[OutAttribute] int% pfExists
)
abstract Exists :
wszFilename:string *
fOnlyCheckOnDisk:int *
pfExists:int byref -> int
function Exists(
wszFilename : String,
fOnlyCheckOnDisk : int,
pfExists : int
) : int
Parameters
wszFilename
Type: String[in] The name of the file.
fOnlyCheckOnDisk
Type: Int32[in] A Boolean value. Set to true to restrict the check to files on disk.
pfExists
Type: Int32%[out] A Boolean value. Set to true if the file exists.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell90.idl:
HRESULT Exists(
[in] LPCOLESTR wszFilename,
[in] BOOL fOnlyCheckOnDisk,
[out, retval] BOOL *pfExists
);
.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.