NoWebContextException class
Representa uma exceção que é lançada quando não existe nenhum contexto da Web.
Inheritance hierarchy
System.Object
System.Exception
Microsoft.Office.Server.UserProfiles.UserProfileException
Microsoft.Office.Server.UserProfiles.NoWebContextException
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaração
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class NoWebContextException _
Inherits UserProfileException
'Uso
Dim instance As NoWebContextException
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class NoWebContextException : UserProfileException
Comentários
O chamador deve estar sendo executado no site da Web.
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.