AgentProfile.MakeDefault 方法

Sets the profile as the default profile for all replication agents of the same type.

命名空间:  Microsoft.SqlServer.Replication
程序集:  Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)

语法

声明
Public Sub MakeDefault
用法
Dim instance As AgentProfile

instance.MakeDefault()
public void MakeDefault()
public:
void MakeDefault()
member MakeDefault : unit -> unit
public function MakeDefault()

异常

异常 条件
ApplicationException

When the profile represented by the object does not exist on the server.

注释

The profile must be created on the server before performing this operation.

The MakeDefault method can be called only by members of the sysadmin fixed server role at the Distributor.

请参阅

参考

AgentProfile 类

Microsoft.SqlServer.Replication 命名空间