ScopingExtensions.ContainsPartMetadataWithKey Method (ComposablePartDefinition, String)

.NET Framework (current version)
 

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

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

public static bool ContainsPartMetadataWithKey(
	this ComposablePartDefinition part,
	string key
)

Parameters

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

The part to search.

key
Type: System.String

The metadata key.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.5
Return to top
Show: