This documentation is archived and is not being maintained.

SecureMethodAttribute Class

Ensures that the infrastructure calls through an interface for a method or for each method in a class when using the security service. Classes need to use interfaces to use security services. This class cannot be inherited.

For a list of all members of this type, see SecureMethodAttribute Members.

System.Object
   System.Attribute
      System.EnterpriseServices.SecureMethodAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Method)>
<ComVisible(False)>
NotInheritable Public Class SecureMethodAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
[ComVisible(false)]
public sealed class SecureMethodAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class |
   AttributeTargets::Method)]
[ComVisible(false)]
public __gc __sealed class SecureMethodAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)
 ComVisible(false)
class SecureMethodAttribute extends Attribute

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.

Requirements

Namespace: System.EnterpriseServices

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Enterpriseservices (in System.Enterpriseservices.dll)

See Also

SecureMethodAttribute Members | System.EnterpriseServices Namespace

Show: