ManagementReferenceAttribute Class

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

Marks a class member, property or method parameter as a reference to another management object or class. The Type must be a string. The referenced type is passed in the attribute constructor. The default type is object.

Namespace: System.Management
Assembly:   System.Core (in System.Core.dll)

[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class ManagementReferenceAttribute : Attribute
Not applicable.

// in the following example, the Configuration field is a string that // is a reference to a class of type ProcessClass
[ManagementReference(Type = "ProcessClass")]
[ManagementKey]
 public string Configuration;

System.Object
  System.Attribute
    System.Management.ManagementReferenceAttribute

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

Windows Server 2003, Windows XP SP2, Windows Vista

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft