DataCollection.CurrentId (Propiedad)

La propiedad CurrentId devuelve el pseudo-token para el identificador del subproceso o del proceso, en una llamada a NameProfile, StartProfile, StopProfile, SuspendProfile y ResumeProfile.Esta propiedad se utiliza para aplicar el método al subproceso o proceso actual, en lugar de a uno que haya indicado de manera específica.

Espacio de nombres:  Microsoft.VisualStudio.Profiler
Ensamblado:  Microsoft.VisualStudio.Profiler (en Microsoft.VisualStudio.Profiler.dll)

Sintaxis

'Declaración
Public Shared ReadOnly Property CurrentId As UInteger
public static uint CurrentId { get; }
public:
static property unsigned int CurrentId {
    unsigned int get ();
}
static member CurrentId : uint32
static function get CurrentId () : uint

Valor de propiedad

Tipo: System.UInt32
Valor entero sin signo para el identificador del proceso o del subproceso.

Ejemplos

En el ejemplo de código siguiente se muestra la propiedad CurrentId.CurrentId se pasa como un parámetro en la llamada a DataCollection.NameProfile para identificar el identificador del subproceso actual.

        public void ExerciseCommentMarkAtProfile()
        {
            // Declare and initalize variables to pass to 
            // CommentMarkAtProfile.  The values of these 
            // parameters are assigned based on the needs 
            // of the code; and for the sake of simplicity
            // in this example, the variables are assigned
            // arbitrary values.
            long timestamp = 0x1111;
            int markId = 01;
            string markText = "Exercising CommentMarkAtProfile...";

            // Declare MarkOperationResult Enumerator.  
            // Holds return value from call to CommentMarkAtProfile.
            MarkOperationResult markResult;

            markResult = DataCollection.CommentMarkAtProfile(
                timestamp,
                markId,
                markText);

            // Check result of CommentMarkAtProfile call.
            Console.WriteLine("CommentMarkAtProfile returned {0}",
                markResult); 
        }

Seguridad de .NET Framework

Vea también

Referencia

DataCollection Clase

Microsoft.VisualStudio.Profiler (Espacio de nombres)