Méthode TestMailProfile
Tests the validity of an e-mail profile.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub TestMailProfile ( _
profileName As String _
)
'Utilisation
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
)
Paramètres
- profileName
Type : System. . :: . .String
A String value that specifies the name of the e-mail profile.
Notes
If the e-mail profile is not valid and the test fails, a FailedOperationException exception is thrown.