AttributedModelServices.Exports 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
Exports(ComposablePartDefinition, Type) |
Returns a value that indicates whether the specified part contains an export that matches the specified contract type. |
Exports<T>(ComposablePartDefinition) |
Returns a value that indicates whether the specified part contains an export that matches the specified contract type. |
Exports(ComposablePartDefinition, Type)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
Returns a value that indicates whether the specified part contains an export that matches the specified contract type.
public:
[System::Runtime::CompilerServices::Extension]
static bool Exports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, Type ^ contractType);
public static bool Exports (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, Type contractType);
static member Exports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * Type -> bool
<Extension()>
Public Function Exports (part As ComposablePartDefinition, contractType As Type) As Boolean
Parameters
The part to search.
- contractType
- Type
The contract type.
Returns
true
if part
contains an export definition that matches contractType
; otherwise, false
.
Applies to
Exports<T>(ComposablePartDefinition)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
Returns a value that indicates whether the specified part contains an export that matches the specified contract type.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool Exports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part);
public static bool Exports<T> (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part);
static member Exports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition -> bool
<Extension()>
Public Function Exports(Of T) (part As ComposablePartDefinition) As Boolean
Type Parameters
- T
The contract type.
Parameters
The part to search.
Returns
true
if part
contains an export definition of type T
; otherwise, false
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기