共用方式為


AgentProfile.MakeDefault Method

Definition

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

public:
 void MakeDefault();
public void MakeDefault ();
member this.MakeDefault : unit -> unit
Public Sub MakeDefault ()

Exceptions

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

Remarks

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.

Applies to