Database.IsLocalPrimaryReplica Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true if the database is part of an Availability Group and resides on the primary replica server
public bool IsLocalPrimaryReplica ();
member this.IsLocalPrimaryReplica : unit -> bool
Public Function IsLocalPrimaryReplica () As Boolean