The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UrlAttribute Class

Defines an attribute that can be used at the call site to specify the URL where the activation will happen. This class cannot be inherited.

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


[Visual Basic]
NotInheritable Public Class UrlAttribute
   Inherits ContextAttribute
public sealed class UrlAttribute : ContextAttribute
public __gc __sealed class UrlAttribute : public ContextAttribute
class UrlAttribute extends ContextAttribute

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.


The UrlAttribute is passed in the activation attributes array as a parameter to Activator.CreateInstance when creating activated objects with the CreateInstance method.

For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.Runtime.Remoting.Activation

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

UrlAttribute Members | System.Runtime.Remoting.Activation Namespace | ContextAttribute | IContextProperty

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft