Condividi tramite


DocData Constructor (IServiceProvider, String)

Initializes a new instance of DocData from the specified file and sets the site from the specified site.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Dichiarazione
Public Sub New ( _
    provider As IServiceProvider, _
    fileName As String _
)
'Utilizzo
Dim provider As IServiceProvider
Dim fileName As String

Dim instance As New DocData(provider, _
    fileName)
public DocData(
    IServiceProvider provider,
    string fileName
)
public:
DocData(
    IServiceProvider^ provider, 
    String^ fileName
)
new : 
        provider:IServiceProvider * 
        fileName:string -> DocData
public function DocData(
    provider : IServiceProvider, 
    fileName : String
)

Parameters

Remarks

This will create the underlying text buffer and will register the buffer in the Running Document Table. Calling Dispose will unregister the buffer.

.NET Framework Security

See Also

Reference

DocData Class

DocData Members

DocData Overload

Microsoft.VisualStudio.Shell.Design.Serialization Namespace