다음을 통해 공유


VsMSBuildTaskFileManagerClass.Delete Method

Deletes the specified file on disk and removes it from the running document table (RDT).

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 Delete ( _
    wszFilename As String _
) As Integer
public virtual int Delete(
    string wszFilename
)
public:
virtual int Delete(
    [InAttribute] String^ wszFilename
)
abstract Delete : 
        wszFilename:string -> int  
override Delete : 
        wszFilename:string -> int
public function Delete(
    wszFilename : String
) : int

Parameters

  • wszFilename
    Type: String

    [in] The filename of the file to be deleted.

Return Value

Type: Int32
Returns S_OK if the method is successful; otherwise, returns E_FAIL if the document is in the RDT and something else has a lock on it which cannot be removed automatically.

Implements

IVsMSBuildTaskFileManager.Delete(String)

.NET Framework Security

See Also

Reference

VsMSBuildTaskFileManagerClass Class

Microsoft.VisualStudio.Shell.Interop Namespace