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
)

参数

注释

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