IVsOperationProgress.AccessStage(String, String, UInt32) Yöntem

Tanım

Dikkat

Use IVsOperationProgress2.RegisterStageOperationTasksAsync to avoid potential deadlocks when using the old API.

Belirli bir OperationProgressStage erişir. Belirli bir aşamaya daha fazla erişim yoksa, aşama tamamlandı olarak kabul edilir.

public:
 Microsoft::VisualStudio::OperationProgress::IOperationProgressStageAccess ^ AccessStage(System::String ^ operationProgressStageId, System::String ^ name, System::UInt32 estimatedTaskCount);
[System.Obsolete("Use IVsOperationProgress2.RegisterStageOperationTasksAsync to avoid potential deadlocks when using the old API.")]
public Microsoft.VisualStudio.OperationProgress.IOperationProgressStageAccess AccessStage (string operationProgressStageId, string name, uint estimatedTaskCount);
[<System.Obsolete("Use IVsOperationProgress2.RegisterStageOperationTasksAsync to avoid potential deadlocks when using the old API.")>]
abstract member AccessStage : string * string * uint32 -> Microsoft.VisualStudio.OperationProgress.IOperationProgressStageAccess
Public Function AccessStage (operationProgressStageId As String, name As String, estimatedTaskCount As UInteger) As IOperationProgressStageAccess

Parametreler

operationProgressStageId
String

Erişim için aşamanın tanımlayıcısı. CommonOperationProgressStageIdsOrtak aşamalar için bkz..

name
String

Telemetriyi günlüğe kaydetmek için kullanılan bu erişimin sabit adı.

estimatedTaskCount
UInt32

OperationProgressTaskBu erişim için kaydedilecek numaranın ilk tahmini. Bu erişimin ilerlemesini tahmin etmek için kullanılır.

Döndürülenler

IOperationProgressStageAccess

Örneği IOperationProgressStageAccess , bu erişimin kullanım süresini temsil eder.

Öznitelikler

Şunlara uygulanır