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)
Available in Sandboxed Solutions: No
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.StringA string that contains a name for the encrypted string. If this value is null, a unique name is generated for the instance.
owner
Type: Microsoft.SharePoint.Administration.SPPersistedObjectAn SPPersistedObject object that represents the object that owns this string.
farmIsParent
Type: System.Booleantrue 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.