Condividi tramite


Metodo TestMailProfile

Tests the validity of an e-mail profile.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub TestMailProfile ( _
    profileName As String _
)
'Utilizzo
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
)

Parametri

Osservazioni

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