MetadataBuilder.AddCustomDebugInformation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增自訂除錯資訊。
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
參數
- parent
- EntityHandle
一個實體可將除錯資訊附加於:a MethodDefinitionHandle, FieldDefinitionHandle, TypeReferenceHandle, LocalScopeHandleModuleDefinitionHandleMemberReferenceHandleDeclarativeSecurityAttributeHandleInterfaceImplementationHandleParameterHandleTypeDefinitionHandlePropertyDefinitionHandleEventDefinitionHandleAssemblyFileHandleAssemblyReferenceHandleExportedTypeHandleAssemblyDefinitionHandleManifestResourceHandleTypeSpecificationHandleGenericParameterHandleGenericParameterConstraintHandleModuleReferenceHandleStandaloneSignatureHandleDocumentHandleLocalVariableHandleMethodSpecificationHandleLocalConstantHandlea 。ImportScopeHandle
- kind
- GuidHandle
資訊型的。 決定了斑 value 點的結構。
- value
- BlobHandle
自訂除錯資訊塊。
傳回
一個附加自訂除錯資訊的代號。
例外狀況
parent 沒有預期中的握把類型。
備註
條目可依任意順序添加。 序列化時,表格會自動排序。