共用方式為


SPUserResource constructor (String, String, SPResourceType)

初始化指定的名稱、 值和資源類型為基礎的SPUserResource類別的新執行個體。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub New ( _
    name As String, _
    value As String, _
    type As SPResourceType _
)
'用途
Dim name As String
Dim value As String
Dim type As SPResourceType

Dim instance As New SPUserResource(name, value, _
    type)
public SPUserResource(
    string name,
    string value,
    SPResourceType type
)

參數

  • name
    Type: System.String

    會指定使用者資源名稱的字串。這個名稱必須以文數字字元開頭,而且不能 null 。

  • value
    Type: System.String

    指定的資源的目前執行緒的文化特性值字串。

Exceptions

Exception Condition
ArgumentNullException

name是 null 或空白。

ArgumentException

name參數的值不是以文數字字元開頭。

請參閱

參照

SPUserResource class

SPUserResource members

SPUserResource overload

Microsoft.SharePoint namespace

Name