View Source
  Interface IDomainService
  
  
  
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public interface IDomainService : IService
   
  Methods
  
  
    View Source
  
  Delete(IDomain)
  
  
  Declaration
  
    Attempt<OperationResult> Delete(IDomain domain)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDomain | domain |  | 
    
  
  Returns
  
  
    View Source
  
  Exists(String)
  
  
  Declaration
  
    bool Exists(string domainName)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | domainName |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    View Source
  
  GetAll(Boolean)
  
  
  Declaration
  
    IEnumerable<IDomain> GetAll(bool includeWildcards)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Boolean | includeWildcards |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | IEnumerable<IDomain> |  | 
    
  
  
    View Source
  
  GetAllAsync(Boolean)
  Gets all assigned domains.
Declaration
  
    Task<IEnumerable<IDomain>> GetAllAsync(bool includeWildcards)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Boolean | includeWildcards | Whether or not to include wildcard domains. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Task<IEnumerable<IDomain>> |  | 
    
  
  
    View Source
  
  GetAssignedDomains(Int32, Boolean)
  
  
  Declaration
  
    IEnumerable<IDomain> GetAssignedDomains(int contentId, bool includeWildcards)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | contentId |  | 
      
        | System.Boolean | includeWildcards |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | IEnumerable<IDomain> |  | 
    
  
  
    View Source
  
  GetAssignedDomainsAsync(Guid, Boolean)
  Gets all assigned domains for content item.
Declaration
  
    Task<IEnumerable<IDomain>> GetAssignedDomainsAsync(Guid contentKey, bool includeWildcards)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Guid | contentKey | The key of the content item. | 
      
        | System.Boolean | includeWildcards | Whether or not to include wildcard domains. | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | Task<IEnumerable<IDomain>> |  | 
    
  
  
    View Source
  
  GetById(Int32)
  
  
  Declaration
  
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | id |  | 
    
  
  Returns
  
  
    View Source
  
  GetByName(String)
  
  
  Declaration
  
    IDomain GetByName(string name)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | name |  | 
    
  
  Returns
  
  
    View Source
  
  Save(IDomain)
  
  
  Declaration
  
    Attempt<OperationResult> Save(IDomain domainEntity)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDomain | domainEntity |  | 
    
  
  Returns
  
  
    View Source
  
  Sort(IEnumerable<IDomain>)
  
  
  Declaration
  
    virtual Attempt<OperationResult> Sort(IEnumerable<IDomain> items)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IEnumerable<IDomain> | items |  | 
    
  
  Returns
  
  
    View Source
  
  UpdateDomainsAsync(Guid, DomainsUpdateModel)
  Updates the domain assignments for a content item.
Declaration
  
    Task<Attempt<DomainUpdateResult, DomainOperationStatus>> UpdateDomainsAsync(Guid contentKey, DomainsUpdateModel updateModel)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Guid | contentKey | The key of the content item. | 
      
        | DomainsUpdateModel | updateModel | The domain assignments to apply. | 
    
  
  Returns