UsesHostName 屬性
Gets 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
Get
'用途
Dim instance As MergePublication
Dim value As Boolean
value = instance.UsesHostName
public bool UsesHostName { get; }
public:
property bool UsesHostName {
bool get ();
}
member UsesHostName : bool
function get UsesHostName () : boolean
屬性值
型別:System. . :: . .Boolean
A Boolean value. If true, the merge publication uses the HOST_NAME function to evaluate the partition. If false, the merge publication does not use the HOST_NAME function to evaluate the partition.
例外狀況
例外狀況 | 條件 |
---|---|
ApplicationException | 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.
The UsesHostName property is available with SQL Server 2005.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.