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


Метод JobServer.TestMailProfile

Tests the validity of an e-mail profile.

Пространство имен:  Microsoft.SqlServer.Management.Smo.Agent
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub TestMailProfile ( _
    profileName As String _
)
'Применение
Dim instance As JobServer 
Dim profileName As String

instance.TestMailProfile(profileName)
public void TestMailProfile(
    string profileName
)
public:
void TestMailProfile(
    String^ profileName
)
member TestMailProfile : 
        profileName:string -> unit
public function TestMailProfile(
    profileName : String
)

Параметры

  • profileName
    Тип: System.String
    A String value that specifies the name of the e-mail profile.

Замечания

If the e-mail profile is not valid and the test fails, a FailedOperationException exception is thrown.

Примеры

Планирование автоматических административных задач в агенте SQL Server

См. также

Справочник

JobServer Класс

Пространство имен Microsoft.SqlServer.Management.Smo.Agent

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

Задачи автоматизированного администрирования (агент SQL Server)

Хранимые процедуры агента SQL Server (Transact-SQL)