Share via


ManagementPackReferenceCollection.TryGetValue Method

Definition

Tries to get a value from an item in the collection.

public:
 virtual bool TryGetValue(System::String ^ alias, [Runtime::InteropServices::Out] Microsoft::EnterpriseManagement::Configuration::ManagementPackReference ^ % mpreference);
public bool TryGetValue (string alias, out Microsoft.EnterpriseManagement.Configuration.ManagementPackReference mpreference);
abstract member TryGetValue : string * ManagementPackReference -> bool
override this.TryGetValue : string * ManagementPackReference -> bool
Public Function TryGetValue (alias As String, ByRef mpreference As ManagementPackReference) As Boolean

Parameters

alias
String

The alias of the item to get a value for.

mpreference
ManagementPackReference

The ManagementPackReference object to obtain.

Returns

true if you can get the value from the collection; otherwise, false.

Applies to