View Source
  Interface IPreviewService
  
  
  
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public interface IPreviewService
   
  Methods
  
  
    View Source
  
  EndPreviewAsync()
  Exits preview mode for a given user that calls this
Declaration
  
  Returns
  
  
    View Source
  
  TryEnterPreviewAsync(IUser)
  Enters preview mode for a given user that calls this
Declaration
  
    Task<bool> TryEnterPreviewAsync(IUser user)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IUser | user |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Task<System.Boolean> |  | 
    
  
  
    View Source
  
  TryGetPreviewClaimsIdentityAsync()
  
  
  Declaration
  
    Task<Attempt<ClaimsIdentity>> TryGetPreviewClaimsIdentityAsync()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Task<Attempt<System.Security.Claims.ClaimsIdentity>> |  |