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.