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.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
ProtocolDefinition Class
ProtocolDefinition Members
Microsoft.SqlServer.Management.Nmo Namespace
Другие ресурсы
Определение пользовательских протоколов доставки
AssemblyName Element (ICF)