Loads the document by using its file name.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Function LoadDocData ( _
fileName As String _
) As Integer
'使用
Dim instance As DocData
Dim fileName As String
Dim returnValue As Integer
returnValue = instance.LoadDocData(fileName)
public int LoadDocData(
string fileName
)
public:
virtual int LoadDocData(
String^ fileName
) sealed
public final function LoadDocData(
fileName : String
) : int
Parameters
fileName
Type: System.StringThe file name of the document.
Return Value
Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.
Implements
IVsPersistDocData2.LoadDocData(String)
IVsPersistDocData.LoadDocData(String)
Permissions
- 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.