다음을 통해 공유


VsShellUtilities.GetRDTDocumentInfo Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.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 _
)
‘사용 방법
Dim site As IServiceProvider
Dim documentName As String
Dim hierarchy As IVsHierarchy
Dim itemid As UInteger
Dim persistDocData As IVsPersistDocData
Dim docCookie As UInteger

VsShellUtilities.GetRDTDocumentInfo(site, documentName, _
    hierarchy, itemid, persistDocData, _
    docCookie)
public static void GetRDTDocumentInfo(
    IServiceProvider site,
    string documentName,
    out IVsHierarchy hierarchy,
    out uint itemid,
    out IVsPersistDocData persistDocData,
    out uint docCookie
)
public:
static void GetRDTDocumentInfo(
    IServiceProvider^ site, 
    String^ documentName, 
    [OutAttribute] IVsHierarchy^% hierarchy, 
    [OutAttribute] unsigned int% itemid, 
    [OutAttribute] IVsPersistDocData^% persistDocData, 
    [OutAttribute] unsigned int% docCookie
)
static member GetRDTDocumentInfo : 
        site:IServiceProvider * 
        documentName:string * 
        hierarchy:IVsHierarchy byref * 
        itemid:uint32 byref * 
        persistDocData:IVsPersistDocData byref * 
        docCookie:uint32 byref -> unit 
public static function GetRDTDocumentInfo(
    site : IServiceProvider, 
    documentName : String, 
    hierarchy : IVsHierarchy, 
    itemid : uint, 
    persistDocData : IVsPersistDocData, 
    docCookie : uint
)

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

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace