Compartir a través de


ProtocolDefinition.AssemblyName Property

Gets or sets the path and file name of the assembly that contains the protocol class.

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property AssemblyName As String
public string AssemblyName { get; set; }
public:
property String^ AssemblyName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_AssemblyName ()

/** @property */
public void set_AssemblyName (String value)
public function get AssemblyName () : String

public function set AssemblyName (value : String)

Valor de propiedad

A String, between 1 and 260 characters in length, that specifies the name of the assembly.

Notas

You must specify either the full path and file name of the assembly or the assembly's strong name.

For custom delivery protocols based on the IHttpProtocolProvider interface, do not use the AssemblyName property.

If you do not know the class and assembly names for a custom protocol, contact the developer or supplier who provided the custom delivery protocol. The assembly name is usually the name of a DLL containing the custom delivery protocol implementation and the class name is the class within the assembly for the protocol.

Ejemplo

The following examples show how to declare a custom delivery protocol and add it to an instance of Notification Services:

ProtocolDefinition customProtocol = 
    new ProtocolDefinition(myInstance, "MyCustomProtocol");
customProtocol.ClassName = "MyNamespace.MyProtocolClass";
customProtocol.AssemblyName = @"C:\NS\Full\MyCustomComponents.dll";
myInstance.ProtocolDefinitions.Add(customProtocol);
Dim customProtocol As ProtocolDefinition = _
    New ProtocolDefinition(myInstance, "MyCustomProtocol")
customProtocol.ClassName = "MyNamespace.MyProtocolClass"
customProtocol.AssemblyName = _
    "C:\NS\Full\MyCustomComponents.dll"
myInstance.ProtocolDefinitions.Add(customProtocol)

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

ProtocolDefinition Class
ProtocolDefinition Members
Microsoft.SqlServer.Management.Nmo Namespace

Otros recursos

Definir protocolos de entrega personalizados
AssemblyName Element (ICF)