MetadataBuilder.AddCustomDebugInformation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds custom debug information.
public:
System::Reflection::Metadata::CustomDebugInformationHandle AddCustomDebugInformation(System::Reflection::Metadata::EntityHandle parent, System::Reflection::Metadata::GuidHandle kind, System::Reflection::Metadata::BlobHandle value);
public System.Reflection.Metadata.CustomDebugInformationHandle AddCustomDebugInformation (System.Reflection.Metadata.EntityHandle parent, System.Reflection.Metadata.GuidHandle kind, System.Reflection.Metadata.BlobHandle value);
member this.AddCustomDebugInformation : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.GuidHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.CustomDebugInformationHandle
Public Function AddCustomDebugInformation (parent As EntityHandle, kind As GuidHandle, value As BlobHandle) As CustomDebugInformationHandle
Parameters
- parent
- EntityHandle
An entity to attach the debug information to: a MethodDefinitionHandle, FieldDefinitionHandle, TypeReferenceHandle, TypeDefinitionHandle, ParameterHandle, InterfaceImplementationHandle, MemberReferenceHandle, ModuleDefinitionHandle, DeclarativeSecurityAttributeHandle, PropertyDefinitionHandle, EventDefinitionHandle, StandaloneSignatureHandle, ModuleReferenceHandle, TypeSpecificationHandle, AssemblyDefinitionHandle, AssemblyReferenceHandle, AssemblyFileHandle, ExportedTypeHandle, ManifestResourceHandle, GenericParameterHandle, GenericParameterConstraintHandle, MethodSpecificationHandle, DocumentHandle, LocalScopeHandle, LocalVariableHandle, LocalConstantHandle, or a ImportScopeHandle.
- kind
- GuidHandle
The information kind. Determines the structure of the value
blob.
- value
- BlobHandle
The custom debug information blob.
Returns
A handle to the added custom debug information.
Exceptions
parent
doesn't have the expected handle kind.
Remarks
Entries may be added in any order. The table is automatically sorted when serialized.