ProfileOperationResult Enumeration
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)
Syntax
'Declaration
Public Enumeration ProfileOperationResult
public enum ProfileOperationResult
public enum class ProfileOperationResult
type ProfileOperationResult
public enum ProfileOperationResult
Members
Member name | Description | |
---|---|---|
OK | The call was successful. | |
ErrorNotYetImplemented | The profiling function call, profiling level, or combination of call and level is not yet implemented. | |
ErrorModeNever | The profiling mode was set to NEVER when the function was called. | |
ErrorLevelDoesNotExist | The profiling level specified does not exist. | |
ErrorIdDoesNotExist | The profiling element does not exist. |
Examples
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);
}