Compartilhar via


VirtualTypeBuilder.InitializeFromType Method

Definition

Overloads

InitializeFromType(ITypeResolutionService, CodeNamespace)

Initializes this virtual type builder with data obtained from the given type.

InitializeFromType(ITypeResolutionService, CodeTypeDeclaration)

Initializes this virtual type builder with data obtained from the given type.

InitializeFromType(ITypeResolutionService, CodeTypeDeclaration, String)

Initializes this virtual type builder with data obtained from the given type.

InitializeFromType(ITypeResolutionService, CodeNamespace)

Initializes this virtual type builder with data obtained from the given type.

public:
 void InitializeFromType(System::ComponentModel::Design::ITypeResolutionService ^ typeResolutionService, System::CodeDom::CodeNamespace ^ ns);
public void InitializeFromType (System.ComponentModel.Design.ITypeResolutionService typeResolutionService, System.CodeDom.CodeNamespace ns);
member this.InitializeFromType : System.ComponentModel.Design.ITypeResolutionService * System.CodeDom.CodeNamespace -> unit
Public Sub InitializeFromType (typeResolutionService As ITypeResolutionService, ns As CodeNamespace)

Parameters

typeResolutionService
ITypeResolutionService

The type resolution service to use when resolving types in the Code Document Object Model (CodeDOM) tree.

ns
CodeNamespace

The namespace that contains a type to create. This namespace must contain exactly one type.

Exceptions

If any of the parameters are null.

If ns contains anything other than a single type declaration.

Applies to

InitializeFromType(ITypeResolutionService, CodeTypeDeclaration)

Initializes this virtual type builder with data obtained from the given type.

public:
 void InitializeFromType(System::ComponentModel::Design::ITypeResolutionService ^ typeResolutionService, System::CodeDom::CodeTypeDeclaration ^ typeDecl);
public void InitializeFromType (System.ComponentModel.Design.ITypeResolutionService typeResolutionService, System.CodeDom.CodeTypeDeclaration typeDecl);
member this.InitializeFromType : System.ComponentModel.Design.ITypeResolutionService * System.CodeDom.CodeTypeDeclaration -> unit
Public Sub InitializeFromType (typeResolutionService As ITypeResolutionService, typeDecl As CodeTypeDeclaration)

Parameters

typeResolutionService
ITypeResolutionService

The type resolution service to use when resolving types in the Code Document Object Model (CodeDOM) tree.

typeDecl
CodeTypeDeclaration

Used to initialize a type based on a type declaration.

Exceptions

If any of the parameters are null.

Applies to

InitializeFromType(ITypeResolutionService, CodeTypeDeclaration, String)

Initializes this virtual type builder with data obtained from the given type.

public:
 void InitializeFromType(System::ComponentModel::Design::ITypeResolutionService ^ typeResolutionService, System::CodeDom::CodeTypeDeclaration ^ typeDecl, System::String ^ namespaceName);
public void InitializeFromType (System.ComponentModel.Design.ITypeResolutionService typeResolutionService, System.CodeDom.CodeTypeDeclaration typeDecl, string namespaceName);
member this.InitializeFromType : System.ComponentModel.Design.ITypeResolutionService * System.CodeDom.CodeTypeDeclaration * string -> unit
Public Sub InitializeFromType (typeResolutionService As ITypeResolutionService, typeDecl As CodeTypeDeclaration, namespaceName As String)

Parameters

typeResolutionService
ITypeResolutionService

The type resolution service to use when resolving types in the Code Document Object Model (CodeDOM) tree.

typeDecl
CodeTypeDeclaration

Used to initialize a type based on a type declaration.

namespaceName
String

The namespace that contains a type to create. This namespace must contain exactly one type.

Exceptions

If any of the parameters are null.

If ns contains anything other than a single type declaration.

Applies to