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);
} |