Поделиться через


ModuleBuilder.DefineDocument Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines a document for source code.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Function DefineDocument ( _
    url As String, _
    language As Guid, _
    languageVendor As Guid, _
    documentType As Guid _
) As ISymbolDocumentWriter
[SecuritySafeCriticalAttribute]
public ISymbolDocumentWriter DefineDocument(
    string url,
    Guid language,
    Guid languageVendor,
    Guid documentType
)

Parameters

  • languageVendor
    Type: System.Guid
    The GUID that identifies the document language vendor. This can be Guid.Empty.

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

url is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

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

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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