次の方法で共有


RunningDocumentTable.FindDocument Method (String)

Gets an object from the Running Document Table (RDT) that represents the document specified by the given path.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣言
Public Function FindDocument ( _
    moniker As String _
) As Object
public Object FindDocument(
    string moniker
)

Parameters

Return Value

Type: System.Object
An object that can be cast to an appropriate interface to access the document (see Remarks for details), or nulla null reference (Nothing in Visual Basic) if the document is not registered with Visual Studio.

Remarks

The object returned can typically be cast to the IVsPersistDocData interface or the IVsDocDataFileChangeControl interface.

.NET Framework Security

See Also

Reference

RunningDocumentTable Class

FindDocument Overload

Microsoft.VisualStudio.Shell Namespace