The following code illustrates the ProfileLevel enumeration. The example uses the ProfileLevel value of Global in a call to the DataCollection.StartProfile method.
|
public void ExerciseStartProfile()
{
// Declare enumeration to hold return value of
// the call to StartProfile.
ProfileOperationResult profileResult;
profileResult = DataCollection.StartProfile(
ProfileLevel.Global,
DataCollection.CurrentId);
Console.WriteLine("StartProfile returned {0}", profileResult);
} |