다음을 통해 공유


SPEncryptedString constructor (String, SPPersistedObject, Boolean)

Initializes a new instance of the SPEncryptedString class and optionally generates a unique name for the instance.

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    owner As SPPersistedObject, _
    farmIsParent As Boolean _
)
'Usage
Dim name As String
Dim owner As SPPersistedObject
Dim farmIsParent As Boolean

Dim instance As New SPEncryptedString(name, owner, _
    farmIsParent)
public SPEncryptedString(
    string name,
    SPPersistedObject owner,
    bool farmIsParent
)

Parameters

  • name
    Type: System.String

    A string that contains a name for the encrypted string. If this value is null, a unique name is generated for the instance.

  • farmIsParent
    Type: System.Boolean

    true to set the parent of the base SPPersistedObject to be the SPFarm object; false to set it to be the "owner" parameter.

Remarks

The farmIsParent parameter of this constructor allows you to change the parenting structure. The value of this parameter is specific to your implementation.

See also

Reference

SPEncryptedString class

SPEncryptedString members

SPEncryptedString overload

Microsoft.SharePoint.Administration namespace