Partager via


EnterpriseManagementObjectBaseWithProperties.ContainsProperty Method (ManagementPackType, String)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if the specifically named property exists in the specified type.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As EnterpriseManagementObjectBaseWithProperties
Dim type As ManagementPackType
Dim name As String
Dim returnValue As Boolean

returnValue = instance.ContainsProperty(type, name)

Syntax

'Declaration
Public Function ContainsProperty ( _
    type As ManagementPackType, _
    name As String _
) As Boolean
public bool ContainsProperty (
    ManagementPackType type,
    string name
)
public:
bool ContainsProperty (
    ManagementPackType^ type, 
    String^ name
)
public boolean ContainsProperty (
    ManagementPackType type, 
    String name
)
public function ContainsProperty (
    type : ManagementPackType, 
    name : String
) : boolean

Parameters

  • type
    The type to search.
  • name
    The name of the property.

Return Value

true if the property exists; 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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

EnterpriseManagementObjectBaseWithProperties Class
EnterpriseManagementObjectBaseWithProperties Members
Microsoft.EnterpriseManagement.Common Namespace