Compartir a través de


TestMailProfile Método

Tests the validity of an e-mail profile.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub TestMailProfile ( _
    profileName As String _
)
'Uso
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
)

Parámetros

Comentarios

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