Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DefineDocument Method

ModuleBuilder.DefineDocument Method

Defines a document for source code.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public ISymbolDocumentWriter DefineDocument(
	string url,
	Guid language,
	Guid languageVendor,
	Guid documentType
)

Parameters

url
Type: System.String
The URL for the document.
language
Type: System.Guid
The GUID that identifies the document language. This can be Guid.Empty.
languageVendor
Type: System.Guid
The GUID that identifies the document language vendor. This can be Guid.Empty.
documentType
Type: System.Guid
The GUID that identifies the document type. This can be Guid.Empty.

Return Value

Type: System.Diagnostics.SymbolStore.ISymbolDocumentWriter
The defined document.

ExceptionCondition
ArgumentNullException

url is null.

InvalidOperationException

This method is called on a dynamic module that is not a debug module.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft