The following example illustrates the NameOperationResult enumeration. The example uses a call to the DataCollection.NameProfile method to assign a value to the NameOperationResult enumeration.
|
public void ExerciseNameOperationResult()
{
string profileName = "ExerciseNameProfile";
// Declare enumeration to hold result of call to
// ExerciseNameProfle.
NameOperationResult nameResult;
nameResult = DataCollection.NameProfile(
profileName,
ProfileLevel.Global,
DataCollection.CurrentId);
Console.WriteLine("NameProfile returned {0}", nameResult);
} |