Partager via


SPLog.GetInstance - Méthode (Type, MethodInfo)

Retourne une instance de l'objet de journal qui appartient au type spécifié basé sur les informations de méthode spécifiée.

Espace de noms :  Microsoft.SharePoint.Upgrade
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function GetInstance ( _
    type As Type, _
    method As MethodInfo _
) As SPLog
'Utilisation
Dim type As Type
Dim method As MethodInfo
Dim returnValue As SPLog

returnValue = SPLog.GetInstance(type, _
    method)
public static SPLog GetInstance(
    Type type,
    MethodInfo method
)

Paramètres

  • type
    Type : System.Type

    Un objet System.Type qui représente le type.

Valeur renvoyée

Type : Microsoft.SharePoint.Upgrade.SPLog
Objet SPLog qui représente le journal.

Remarques

La méthode GetInstance implémente le format full_name_of_type::name_of_method comme catégorie.

Cette méthode retourne une exception System.ArgumentNullException si un paramètre contient une référence Null (Rien dans Visual Basic).

Voir aussi

Référence

SPLog classe

SPLog - Membres

GetInstance - Surcharge

Microsoft.SharePoint.Upgrade - Espace de noms