ImportBuilder.AsContractType 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.
Overloads
AsContractType(Type) |
Specifies that the import should use the given contract type. |
AsContractType<T>() |
Specifies that the import should use the given contract type. |
AsContractType(Type)
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
Specifies that the import should use the given contract type.
public:
System::ComponentModel::Composition::Registration::ImportBuilder ^ AsContractType(Type ^ type);
public System.ComponentModel.Composition.Registration.ImportBuilder AsContractType (Type type);
member this.AsContractType : Type -> System.ComponentModel.Composition.Registration.ImportBuilder
Public Function AsContractType (type As Type) As ImportBuilder
Parameters
- type
- Type
The contract type to use.
Returns
The current object, to allow chaining.
Exceptions
type
is null
.
Applies to
AsContractType<T>()
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
- Source:
- ImportBuilder.cs
Specifies that the import should use the given contract type.
public:
generic <typename T>
System::ComponentModel::Composition::Registration::ImportBuilder ^ AsContractType();
public System.ComponentModel.Composition.Registration.ImportBuilder AsContractType<T> ();
member this.AsContractType : unit -> System.ComponentModel.Composition.Registration.ImportBuilder
Public Function AsContractType(Of T) () As ImportBuilder
Type Parameters
- T
The type of contract to use.
Returns
The current object, to allow chaining.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per