Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.