Utilities.GetCustomAttribute Method

Applies To: System Center Configuration Manager 2012, System Center Configuration Manager 2012

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

Namespace: Microsoft.ConfigurationManagement.ApplicationManagement
Assembly: Microsoft.ConfigurationManagement.ApplicationManagement (in Microsoft.ConfigurationManagement.ApplicationManagement.dll)

Usage

'Usage
Dim info As MemberInfo
Dim inherit As Boolean
Dim returnValue As T

returnValue = Utilities.GetCustomAttribute(info, inherit)

Syntax

'Declaration
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")> _
Public Shared Function GetCustomAttribute(Of T As Attribute) ( _
    info As MemberInfo, _
    inherit As Boolean _
) As T
[ExtensionAttribute] 
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")] 
public static T GetCustomAttribute<T> (
    MemberInfo info,
    bool inherit
) where T : Attribute
[ExtensionAttribute] 
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1004:GenericMethodsShouldProvideTypeParameter")] 
public:
generic<typename T> where T : Attribute
static T GetCustomAttribute (
    MemberInfo^ info, 
    bool inherit
)

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

See Also

Reference

Utilities Class
Utilities Members
Microsoft.ConfigurationManagement.ApplicationManagement Namespace