Share via


NoWebContextException - Classe

Représente une exception qui est levée lorsqu'il n'existe aucun contexte de site Web.

Hiérarchie d’héritage

System.Object
  System.Exception
    Microsoft.Office.Server.UserProfiles.UserProfileException
      Microsoft.Office.Server.UserProfiles.NoWebContextException

Espace de noms :  Microsoft.Office.Server.UserProfiles
Assembly :  Microsoft.Office.Server.UserProfiles (dans Microsoft.Office.Server.UserProfiles.dll)

Syntaxe

'Déclaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class NoWebContextException _
    Inherits UserProfileException
'Utilisation
Dim instance As NoWebContextException
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class NoWebContextException : UserProfileException

Remarques

L'appelant doit être en cours d'exécution sur le site Web.

Cohérence de thread

Tous les membres statique (Partagé dans Visual Basic)s publics de ce type sont thread-safe. Cela n’est pas garanti pour les membres d’instance.

Voir aussi

Référence

NoWebContextException - Membres

Microsoft.Office.Server.UserProfiles - Espace de noms