ManagementPackReferenceCollection.TryGetValue 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.
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
.