Поделиться через


Instance.EncryptArguments Property

Gets or sets the argument encryption setting for the instance of Notification Services.

Пространство имен: Microsoft.SqlServer.Management.Nmo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Property EncryptArguments As Boolean
public bool EncryptArguments { get; set; }
public:
property bool EncryptArguments {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_EncryptArguments ()

/** @property */
public void set_EncryptArguments (boolean value)
public function get EncryptArguments () : boolean

public function set EncryptArguments (value : boolean)

Значение свойства

true if Notification Services encrypts delivery channel and event provider arguments before storing them in the database; otherwise, false.

Замечания

The EncryptArguments property specifies whether the instance encrypts delivery channel and event provider arguments before storing the values in the instance and application databases. These arguments can contain user names and passwords, so encrypting these values prevents anyone from reading the values from the databases.

Before you create the instance, you must determine the value for the ArgumentKey property, which is a string of up to 2500 characters that Notification Services uses to encrypt the data. You must supply this key value when you create, register, and update the instance.

Пример

The following examples show how to enable argument encryption and set the argument key:

myInstance.EncryptArguments = true;
myInstance.ArgumentKey = "MyKey135711";
myInstance.EncryptArguments = True
myInstance.ArgumentKey = "MyKey135711"

Синхронизация потоков

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.

См. также

Справочник

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

Другие ресурсы

Настройка экземпляров служб Notification Services
EncryptArguments Element (ICF)