Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Apply Multiple Attributes

How to: Apply Multiple Attributes 

This example shows how to apply multiple attributes to the same element.

You can specify several attributes in the same attribute block by separating each attribute with a comma.

Example

This example shows how to apply the EditorBrowsableAttribute attribute and the ObsoleteAttribute attribute to the same function.

<System.ComponentModel.EditorBrowsable( _
    System.ComponentModel.EditorBrowsableState.Never), _
Obsolete("This method should not be used.")> _
Public Shadows Function Update(ByVal x As Integer) As Integer
    ' The function code goes here.
End Function

See Also

Community Additions

ADD
Show:
© 2015 Microsoft