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
hostProperties
Type: Microsoft.TeamFoundation.Framework.Server.HostPropertiesRequired properties to create the deployment service host
failOnInvalidConfiguration
Type: System.BooleanIf 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
- 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.