次の方法で共有


VsShellUtilities.GetRDTDocumentInfo Method

Gets an IVsPersistDocData interface and a document cookie from the running document table for the specified document.

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

Syntax

'宣言
Public Shared Sub GetRDTDocumentInfo ( _
    site As IServiceProvider, _
    documentName As String, _
    <OutAttribute> ByRef hierarchy As IVsHierarchy, _
    <OutAttribute> ByRef itemid As UInteger, _
    <OutAttribute> ByRef persistDocData As IVsPersistDocData, _
    <OutAttribute> ByRef docCookie As UInteger _
)
public static void GetRDTDocumentInfo(
    IServiceProvider site,
    string documentName,
    out IVsHierarchy hierarchy,
    out uint itemid,
    out IVsPersistDocData persistDocData,
    out uint docCookie
)

Parameters

  • docCookie
    Type: System.UInt32%
    [out] The identifier of the document that is held by the running document table.

Remarks

The docCookie parameter can be used in calls to other IVsRunningDocumentTable methods on this document.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

Microsoft.VisualStudio.Shell Namespace