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.

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

Community Additions