MetadataBuilder.AddExportedType 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 an exported type.
public:
System::Reflection::Metadata::ExportedTypeHandle AddExportedType(System::Reflection::TypeAttributes attributes, System::Reflection::Metadata::StringHandle namespace, System::Reflection::Metadata::StringHandle name, System::Reflection::Metadata::EntityHandle implementation, int typeDefinitionId);
public System.Reflection.Metadata.ExportedTypeHandle AddExportedType (System.Reflection.TypeAttributes attributes, System.Reflection.Metadata.StringHandle namespace, System.Reflection.Metadata.StringHandle name, System.Reflection.Metadata.EntityHandle implementation, int typeDefinitionId);
member this.AddExportedType : System.Reflection.TypeAttributes * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.StringHandle * System.Reflection.Metadata.EntityHandle * int -> System.Reflection.Metadata.ExportedTypeHandle
Public Function AddExportedType (attributes As TypeAttributes, namespace As StringHandle, name As StringHandle, implementation As EntityHandle, typeDefinitionId As Integer) As ExportedTypeHandle
Parameters
- attributes
- TypeAttributes
The type attributes.
- namespace
- StringHandle
The type namespace.
- name
- StringHandle
The type name.
- implementation
- EntityHandle
The implementation entity handle, which can be one of the following: an AssemblyFileHandle, ExportedTypeHandle, or AssemblyReferenceHandle.
- typeDefinitionId
- Int32
The type definition ID.
Returns
A handle to the added exported type.
Exceptions
implementation
doesn't have the expected handle kind.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om