SqlCeReplication.HostName Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Sets the host name used for the device when connecting to the Publisher.

  [Visual Basic]
  Public Property HostName As String
[C#]
public string HostName {get; set;}
[C++]
public: __property String* get_HostName();
public: __property void set_HostName(String*);
[JScript]
public function get HostName() : String;
public function set HostName(String);

Property Value

The host name. The default is no host name.

Remarks

The HostName property is optional. Use this property to set a value for HOST_NAME() in a dynamic filter. For example, if the subset filter clause is specified for an article as "LName = HOST_NAME()" and you set the HostName property to "Jones" before calling Synchronize, only rows having "Jones" in the LName column are present in the subscription. For more information, see "Dynamic Filters" in SQL Server Books Online.

Your application must call the ReinitializeSubscription method if it changes the value of the HostName property after the subscription is created.

Requirements

Platforms: .NET Compact Framework

.NET Framework Security:

See Also

SqlCeReplication Class | SqlCeReplication Members | System.Data.SqlServerCe Namespace

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.