System.Reflection.Emit.ModuleBuilder.DefineDocument Method

Defines a document for source.

Syntax

public System.Diagnostics.SymbolStore.ISymbolDocumentWriter DefineDocument (string url, Guid language, Guid languageVendor, Guid documentType)

Parameters

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

Returns

The defined document.

Remarks

Note:

Earlier versions of the .NET Framework throw ArgumentException instead of ArgumentNullException when url is null.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0