[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a property value by identifier if one exists. Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As EnterpriseManagementObjectBaseWithProperties
Dim propertyId As Guid
Dim simpleObject As EnterpriseManagementSimpleObject
Dim returnValue As Boolean

returnValue = instance.TryGetProperty(propertyId, simpleObject)

Syntax

Visual Basic
Public Function TryGetProperty ( _
		propertyId As Guid, _
		<OutAttribute> ByRef simpleObject As EnterpriseManagementSimpleObject _
) As Boolean
C#
public bool TryGetProperty (
		Guid propertyId,
		out EnterpriseManagementSimpleObject simpleObject
)
C++
public:
bool TryGetProperty (
		Guid propertyId, 
		[OutAttribute] EnterpriseManagementSimpleObject^% simpleObject
)
J#
public boolean TryGetProperty (
		Guid propertyId, 
		/** @attribute OutAttribute() */ /** @ref */ EnterpriseManagementSimpleObject simpleObject
)
JScript

Parameters

propertyId

The identifier of the property.

simpleObject

When this method returns, it contains the property value. This parameter is passed uninitialized.

Return Value

true if the property was found and returned; otherwise, false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also