MergePublication.UsesHostName 속성

Gets a value that indicates whether the merge publication has a parameterized row filter that uses the HOST_NAME function to evaluate the partition.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)


Public ReadOnly Property UsesHostName As Boolean 
‘사용 방법
Dim instance As MergePublication 
Dim value As Boolean 

value = instance.UsesHostName
public bool UsesHostName { get; }
property bool UsesHostName {
    bool get ();
member UsesHostName : bool
function get UsesHostName () : boolean

속성 값

유형: System.Boolean
true if the merge publication uses the HOST_NAME function to evaluate the partition; false if the merge publication does not use the HOST_NAME function to evaluate the partition.


예외 조건

When the publication does not exist at the Publisher.

When the version is not Microsoft SQL Server 2005 or later.


The UsesHostName property can be retrieved by members of the db_owner or replmonitor fixed database roles on the publication database or by members of the publication access list (PAL) for the publication.

Retrieving UsesHostName is equivalent to executing sp_helpmergepublication.

참고 항목


MergePublication 클래스

Microsoft.SqlServer.Replication 네임스페이스