DeploymentServiceHost Constructor
Constructs an application service host by reading necessary information from the database using the provided connection string. The provided instance ID will be used to verify that the stored instance ID in the database matches the expected value.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub New ( _
hostProperties As TeamFoundationServiceHostProperties, _
failOnInvalidConfiguration As Boolean _
)
public DeploymentServiceHost(
TeamFoundationServiceHostProperties hostProperties,
bool failOnInvalidConfiguration
)
public:
DeploymentServiceHost(
TeamFoundationServiceHostProperties^ hostProperties,
bool failOnInvalidConfiguration
)
new :
hostProperties:TeamFoundationServiceHostProperties *
failOnInvalidConfiguration:bool -> DeploymentServiceHost
public function DeploymentServiceHost(
hostProperties : TeamFoundationServiceHostProperties,
failOnInvalidConfiguration : boolean
)
Parameters
hostProperties
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceHostPropertiesRequired properties to create the deployment service host
failOnInvalidConfiguration
Type: System.BooleanIf this is true and we do not validate that the database configuration is correct then the this constructor will throw. False should be passed here if the creator of the DeploymentServiceHost must be able to run when connection strings for the application or collections may not be present or correct.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.