ScopingExtensions.ContainsPartMetadata<T> Method (ComposablePartDefinition, String, T)

.NET Framework (current version)
 

Gets a value that indicates whether the specified part contains metadata that has the specified key and value.

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public static bool ContainsPartMetadata<T>(
	this ComposablePartDefinition part,
	string key,
	T value
)

Parameters

part
Type: System.ComponentModel.Composition.Primitives.ComposablePartDefinition

The part to search.

key
Type: System.String

The metadata key.

value
Type: T

The metadata value.

Return Value

Type: System.Boolean

true if part contains metadata that has the specified key, value type, and value; otherwise, false.

Type Parameters

T

The type of the metadata value.

.NET Framework
Available since 4.5
Return to top
Show: