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.
Deletes a file on disk and removes it from the RDT.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Function Delete ( _
wszFilename As String _
) As Integer
int Delete(
string wszFilename
)
int Delete(
[InAttribute] String^ wszFilename
)
abstract Delete :
wszFilename:string -> int
function Delete(
wszFilename : String
) : int
Parameters
wszFilename
Type: String[in] The name of the file to delete.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code. This method returns E_FAIL if the document is in the RDT and something else has a lock on it which cannot be removed automatically.
Remarks
COM Signature
From vsshell90.idl:
HRESULT Delete([in] LPCOLESTR wszFilename);
.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.