ProfileOperationResult - перечисление
Обновлен: Ноябрь 2007
Методы ResumeProfile, StartProfile, StopProfile и SuspendProfile возвращают успех или неудачу, с использованием перечисления ProfileOperationResult.
Пространство имен: Microsoft.VisualStudio.Profiler
Сборка: Microsoft.VisualStudio.Profiler (в Microsoft.VisualStudio.Profiler.dll)
Синтаксис
'Декларация
Public Enumeration ProfileOperationResult
'Применение
Dim instance As ProfileOperationResult
public enum ProfileOperationResult
public enum class ProfileOperationResult
public enum ProfileOperationResult
Члены
Имя члена | Описание | |
---|---|---|
ErrorIdDoesNotExist | Элемент профилирования не существует. | |
ErrorLevelDoesNotExist | Заданный уровень профилирования не существует. | |
ErrorModeNever | При вызове функции для режима профилирования было задано значение NEVER. | |
ErrorNotYetImplemented | Вызов профилирующей функции, уровень профилирования или сочетание вызова и уровня пока не реализованы. | |
OK | Вызов выполнен успешно. |
Примеры
Следующий пример иллюстрирует перечисление ProfileOperationResult. В примере используется вызов метода StartProfile для получения значения ProfileOperationResult.
public void ExerciseProfileOperationResult()
{
// Declare ProfileOperationResult enumeration
// to hold return value of a call to StartProfile.
ProfileOperationResult profileResult;
profileResult = DataCollection.StartProfile(
ProfileLevel.Global,
DataCollection.CurrentId);
Console.WriteLine("StartProfile returned {0}", profileResult);
}