共用方式為


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
)

參數

請參閱

參照

SPDistributedCacheHostInfo class

SPDistributedCacheHostInfo members

SPDistributedCacheHostInfo overload

Microsoft.SharePoint.DistributedCaching.Utilities namespace