IVsFileChangeEx.UnadviseFileChange Method
Disables a client from receiving notifications of changes to a file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function UnadviseFileChange ( _
VSCOOKIE As UInteger _
) As Integer
int UnadviseFileChange(
uint VSCOOKIE
)
int UnadviseFileChange(
[InAttribute] unsigned int VSCOOKIE
)
abstract UnadviseFileChange :
VSCOOKIE:uint32 -> int
function UnadviseFileChange(
VSCOOKIE : uint
) : int
Parameters
VSCOOKIE
Type: UInt32in] Unique identifier of the file with which the event sink should be disassociated. This is the same value that was provided in the AdviseFileChange Method.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsFileChangeEx::UnadviseFileChange(
[in] VSCOOKIE vsCookie
);
.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.