Partager via


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 HostProperties, _
    failOnInvalidConfiguration As Boolean _
)
public DeploymentServiceHost(
    HostProperties hostProperties,
    bool failOnInvalidConfiguration
)
public:
DeploymentServiceHost(
    HostProperties^ hostProperties, 
    bool failOnInvalidConfiguration
)
new : 
        hostProperties:HostProperties * 
        failOnInvalidConfiguration:bool -> DeploymentServiceHost
public function DeploymentServiceHost(
    hostProperties : HostProperties, 
    failOnInvalidConfiguration : boolean
)

Parameters

  • failOnInvalidConfiguration
    Type: System.Boolean

    If this is true and we fail to validate that the database configuration is correct then the this constructor will throw. False should be passed here if the creator of the DeploymentServiceHost needs to be able to run in situations where connection strings for the application or collections may not be present or correct.

.NET Framework Security

See Also

Reference

DeploymentServiceHost Class

Microsoft.TeamFoundation.Framework.Server Namespace