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、、、TypeReferenceHandleLocalScopeHandleLocalVariableHandleModuleReferenceHandleDocumentHandleMethodSpecificationHandleGenericParameterHandleManifestResourceHandleAssemblyFileHandleAssemblyDefinitionHandleModuleDefinitionHandleTypeDefinitionHandleMemberReferenceHandleInterfaceImplementationHandleParameterHandleDeclarativeSecurityAttributeHandlePropertyDefinitionHandleAssemblyReferenceHandleGenericParameterConstraintHandleEventDefinitionHandleStandaloneSignatureHandleExportedTypeHandleTypeSpecificationHandle或 LocalConstantHandlea。ImportScopeHandleFieldDefinitionHandleMethodDefinitionHandle
- kind
- GuidHandle
信息类型。 确定 Blob 的结构 value 。
- value
- BlobHandle
自定义调试信息 blob。
返回
已添加的自定义调试信息的句柄。
例外
parent 没有预期的句柄类型。
注解
可以按任意顺序添加条目。 序列化时会自动对表进行排序。