Поделиться через


ProfileOperationResult - перечисление

Методы ResumeProfile, StartProfile, StopProfile и SuspendProfile возвращают успех или неудачу, с использованием перечисления ProfileOperationResult.

Пространство имен:  Microsoft.VisualStudio.Profiler
Сборка:  Microsoft.VisualStudio.Profiler (в Microsoft.VisualStudio.Profiler.dll)

Синтаксис

'Декларация
Public Enumeration ProfileOperationResult
public enum ProfileOperationResult
public enum class ProfileOperationResult
type ProfileOperationResult
public enum ProfileOperationResult

Члены

Имя члена Описание
OK Вызов выполнен успешно.
ErrorNotYetImplemented Вызов функции профилирования, уровень профилирования или сочетание вызова и уровня пока не реализованы.
ErrorModeNever При вызове функции для режима профилирования было задано значение NEVER.
ErrorLevelDoesNotExist Заданный уровень профилирования не существует.
ErrorIdDoesNotExist Элемент профилирования не существует.

Примеры

Следующий пример иллюстрирует перечисление 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);
        }

См. также

Ссылки

Microsoft.VisualStudio.Profiler - пространство имен