ServiceHealthModel Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ServiceHealthModel() |
Initializes an instance of the ServiceHealthModel class. |
ServiceHealthModel(ServiceHostBase) |
Initializes an instance of the ServiceHealthModel class that monitors a specified service host. |
ServiceHealthModel(ServiceHostBase, DateTimeOffset) |
Initializes an instance of the ServiceHealthModel class that monitors a specified service host and assigns its start date and time. |
Initializes an instance of the ServiceHealthModel class.
public:
ServiceHealthModel();
public ServiceHealthModel();
Public Sub New ()
Applies to
.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün | Sürümler |
---|---|
.NET Framework | 4.8, 4.8.1 |
Initializes an instance of the ServiceHealthModel class that monitors a specified service host.
public:
ServiceHealthModel(System::ServiceModel::ServiceHostBase ^ serviceHost);
public ServiceHealthModel(System.ServiceModel.ServiceHostBase serviceHost);
new System.ServiceModel.Description.ServiceHealthModel : System.ServiceModel.ServiceHostBase -> System.ServiceModel.Description.ServiceHealthModel
Public Sub New (serviceHost As ServiceHostBase)
Parameters
- serviceHost
- ServiceHostBase
The service host that this health service behavior monitors.
Exceptions
serviceHost
is null
.
Applies to
.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün | Sürümler |
---|---|
.NET Framework | 4.8, 4.8.1 |
Initializes an instance of the ServiceHealthModel class that monitors a specified service host and assigns its start date and time.
public:
ServiceHealthModel(System::ServiceModel::ServiceHostBase ^ serviceHost, DateTimeOffset serviceStartTime);
public ServiceHealthModel(System.ServiceModel.ServiceHostBase serviceHost, DateTimeOffset serviceStartTime);
new System.ServiceModel.Description.ServiceHealthModel : System.ServiceModel.ServiceHostBase * DateTimeOffset -> System.ServiceModel.Description.ServiceHealthModel
Public Sub New (serviceHost As ServiceHostBase, serviceStartTime As DateTimeOffset)
Parameters
- serviceHost
- ServiceHostBase
An instance of the service host that contains a WCF service with its ServiceHealthBehavior enabled.
- serviceStartTime
- DateTimeOffset
The start date and time to be assigned to the service.
Exceptions
serviceHost
is null
.
Applies to
.NET Framework 4.8.1 ve .NET Framework 4.8
Ürün | Sürümler |
---|---|
.NET Framework | 4.8, 4.8.1 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: