SPManagedAccount.DeployFarmAdminCredentials Method
Deploys a managed account to the farm administration.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function DeployFarmAdminCredentials ( _
throwIfNoAdminPool As Boolean, _
isRunningInTimer As Boolean _
) As Boolean
'Usage
Dim instance As SPManagedAccount
Dim throwIfNoAdminPool As Boolean
Dim isRunningInTimer As Boolean
Dim returnValue As Boolean
returnValue = instance.DeployFarmAdminCredentials(throwIfNoAdminPool, _
isRunningInTimer)
public bool DeployFarmAdminCredentials(
bool throwIfNoAdminPool,
bool isRunningInTimer
)
Parameters
throwIfNoAdminPool
Type: System.Booleantrue to throw an error if cannot find the administration application pool; otherwise false.
isRunningInTimer
Type: System.Booleantrue if this method is called from the timer; otherwise false.
Return Value
Type: System.Boolean
true if the managed account has been successfully deployed to the farm administration; otherwise false.