Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
 ProfileOperationResult Enumeration
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ProfileOperationResult Enumeration

Updated: November 2007

ResumeProfile, StartProfile, StopProfile, and SuspendProfile return success or failure using the ProfileOperationResult enum.

Namespace:  Microsoft.VisualStudio.Profiler
Assembly:  Microsoft.VisualStudio.Profiler (in Microsoft.VisualStudio.Profiler.dll)

Visual Basic (Declaration)
Public Enumeration ProfileOperationResult
Visual Basic (Usage)
Dim instance As ProfileOperationResult
C#
public enum ProfileOperationResult
Visual C++
public enum class ProfileOperationResult
JScript
public enum ProfileOperationResult
Member nameDescription
ErrorIdDoesNotExist The profiling element does not exist.
ErrorLevelDoesNotExist The profiling level specified does not exist.
ErrorModeNever The profiling mode was set to NEVER when the function was called.
ErrorNotYetImplemented The profiling function call, profiling level, or combination of call and level is not yet implemented.
OK The call was successful.

The following example illustrates the ProfileOperationResult enumeration. The example uses a call to the StartProfile method to retrieve a value for 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);
        }
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker