SPDistributedCacheHostInfo constructor (String, Int32, Int32, Int32, Int32, String, SPDistributedCacheHostStatus, SPDistributedCacheClusterInfo)
初始化使用指定的參數值SPDistributedCacheHostInfo物件的新執行個體。
Namespace: Microsoft.SharePoint.DistributedCaching.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
hostName As String, _
cachePort As Integer, _
clusterPort As Integer, _
arbitrationPort As Integer, _
replicationPort As Integer, _
serviceAccount As String, _
status As SPDistributedCacheHostStatus, _
parent As SPDistributedCacheClusterInfo _
)
'用途
Dim hostName As String
Dim cachePort As Integer
Dim clusterPort As Integer
Dim arbitrationPort As Integer
Dim replicationPort As Integer
Dim serviceAccount As String
Dim status As SPDistributedCacheHostStatus
Dim parent As SPDistributedCacheClusterInfo
Dim instance As New SPDistributedCacheHostInfo(hostName, _
cachePort, clusterPort, arbitrationPort, _
replicationPort, serviceAccount, _
status, parent)
public SPDistributedCacheHostInfo(
string hostName,
int cachePort,
int clusterPort,
int arbitrationPort,
int replicationPort,
string serviceAccount,
SPDistributedCacheHostStatus status,
SPDistributedCacheClusterInfo parent
)
參數
- hostName
Type: System.String
- cachePort
Type: System.Int32
- clusterPort
Type: System.Int32
- arbitrationPort
Type: System.Int32
- replicationPort
Type: System.Int32
- serviceAccount
Type: System.String
請參閱
參照
SPDistributedCacheHostInfo class
SPDistributedCacheHostInfo members