PersistenceProviderBehavior 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PersistenceProviderBehavior 類別的新執行個體。
多載
PersistenceProviderBehavior(PersistenceProviderFactory)
初始化 PersistenceProviderBehavior 類別的新執行個體。
public:
PersistenceProviderBehavior(System::ServiceModel::Persistence::PersistenceProviderFactory ^ providerFactory);
public PersistenceProviderBehavior (System.ServiceModel.Persistence.PersistenceProviderFactory providerFactory);
new System.ServiceModel.Description.PersistenceProviderBehavior : System.ServiceModel.Persistence.PersistenceProviderFactory -> System.ServiceModel.Description.PersistenceProviderBehavior
Public Sub New (providerFactory As PersistenceProviderFactory)
參數
- providerFactory
- PersistenceProviderFactory
與行為物件關聯的 PersistenceProviderFactory。
適用於
PersistenceProviderBehavior(PersistenceProviderFactory, TimeSpan)
初始化 PersistenceProviderBehavior 類別的新執行個體。
public:
PersistenceProviderBehavior(System::ServiceModel::Persistence::PersistenceProviderFactory ^ providerFactory, TimeSpan persistenceOperationTimeout);
public PersistenceProviderBehavior (System.ServiceModel.Persistence.PersistenceProviderFactory providerFactory, TimeSpan persistenceOperationTimeout);
new System.ServiceModel.Description.PersistenceProviderBehavior : System.ServiceModel.Persistence.PersistenceProviderFactory * TimeSpan -> System.ServiceModel.Description.PersistenceProviderBehavior
Public Sub New (providerFactory As PersistenceProviderFactory, persistenceOperationTimeout As TimeSpan)
參數
- providerFactory
- PersistenceProviderFactory
與行為物件關聯的 PersistenceProviderFactory。
- persistenceOperationTimeout
- TimeSpan
逾期時間,經過此時間後,這個物件設定的持續性提供者所執行的持續性作業會中止。