JobServer.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
)
参数
- profileName
类型:System.String
A String value that specifies the name of the e-mail profile.
注释
If the e-mail profile is not valid and the test fails, a FailedOperationException exception is thrown.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo.Agent 命名空间