ProtocolDefinition.AssemblyName Property

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

命名空间: Microsoft.SqlServer.Management.Nmo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
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)

属性值

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

备注

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.

示例

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)

线程安全

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.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

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

其他资源

定义自定义传递协议
AssemblyName Element (ICF)