Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Tests the validity of an e-mail profile.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub TestMailProfile ( _
profileName As String _
)
'Usage
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
)
Parameters
- profileName
Type: System.String
A String value that specifies the name of the e-mail profile.
Remarks
If the e-mail profile is not valid and the test fails, a FailedOperationException exception is thrown.
Examples
Scheduling Automatic Administrative Tasks in SQL Server Agent
See Also
Reference
Microsoft.SqlServer.Management.Smo.Agent Namespace