DataCacheServerEndpoint.CachePort 属性
缓存服务器上的缓存端口。
命名空间: Microsoft.ApplicationServer.Caching
汇编: Microsoft.ApplicationServer.Caching.Client(在 microsoft.applicationserver.caching.client.dll 中)
用法
语法
声明
Public ReadOnly Property CachePort As Integer
public int CachePort { get; }
public:
property int CachePort {
int get ();
}
/** @property */
public int get_CachePort ()
public function get CachePort () : int
属性值
表示缓存服务器上的缓存端口号的 Int32 值。
备注
缓存端口号定义用于传输缓存数据的端口。该端口是在安装时定义的,但可以通过 PowerShell 缓存管理工具重新配置。有关详细信息,请参阅缓存管理与 PowerShell (Velocity)。
缓存服务器是安装缓存主机服务的物理计算机。可以通过编程方式配置缓存客户端,也可以通过应用程序配置文件配置缓存客户端。有关详细信息,请参阅配置 (Velocity)。
线程安全
此类型的任何公共静态(在 Visual Basic 中为共享)成员都是线程安全的。不能保证任何实例成员都具有线程安全性。
平台
开发平台
Visual Studio 2010 及更高版本, .NET Framework 4
目标平台
Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
另请参阅
参考
DataCacheServerEndpoint 类
DataCacheServerEndpoint 成员
Microsoft.ApplicationServer.Caching 命名空间