NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ModuleBuilder.DefineDocument

Define a document for source.

[Visual Basic]
Public Function DefineDocument( _
   ByVal url As String, _
   ByVal language As Guid, _
   ByVal languageVendor As Guid, _
   ByVal documentType As Guid _
) As ISymbolDocumentWriter
[C#]
public ISymbolDocumentWriter DefineDocument(
   string url,
   Guid language,
   Guid languageVendor,
   Guid documentType
);
[C++]
public: ISymbolDocumentWriter* DefineDocument(
   String* url,
   Guid language,
   Guid languageVendor,
   Guid documentType
);
[JScript]
public function DefineDocument(
   url : String,
   language : Guid,
   languageVendor : Guid,
   documentType : Guid
) : ISymbolDocumentWriter;

Parameters

url
The URL for the document.
language
The GUID identifying the document language. This can be null.
languageVendor
The GUID identifying the document language vendor. This can be null.
documentType
The GUID identifying the document type. This can be null.

Return Value

An ISymbolDocumentWriter object representing the defined document.

Exceptions

Exception Type Condition
ArgumentNullException if url is a null reference (in Visual Basic Nothing)
InvalidOperationException if this method is called on a dynamic module that is not a debug module.

See Also

ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace