SPFarmInitializationSettings.TryGetSecret<T> method

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

Syntax

'Declaration
Public Function TryGetSecret(Of T) ( _
    name As String, _
    <OutAttribute> ByRef secret As T _
) As Boolean
'Usage
Dim instance As SPFarmInitializationSettings
Dim name As String
Dim secret As T
Dim returnValue As Boolean

returnValue = instance.TryGetSecret(name, _
    secret)
public bool TryGetSecret<T>(
    string name,
    out T secret
)

Type parameters

  • T

Parameters

  • secret
    Type: T

Return value

Type: System.Boolean

See also

Reference

SPFarmInitializationSettings class

SPFarmInitializationSettings members

Microsoft.SharePoint.Administration namespace