• Core
  • Infrastructure
  • Web
  • Extensions
  • Umbraco.Cms.Core.Services.Implement
  • MediaService
Search Results for

    Show / Hide Table of Contents
    • Umbraco.Cms.Core
      • IPublishedContentQuery
      • IPublishedContentQueryAccessor
      • PublishedContentQueryAccessor
      • TagQuery
    • Umbraco.Cms.Core.Cache
      • DatabaseServerMessengerNotificationHandler
      • DefaultRepositoryCachePolicy<TEntity, TId>
      • DistributedCacheBinder
      • RepositoryCachePolicyBase<TEntity, TId>
    • Umbraco.Cms.Core.Configuration
      • JsonConfigManipulator
      • NCronTabParser
    • Umbraco.Cms.Core.Deploy
      • IGridCellValueConnector
    • Umbraco.Cms.Core.Events
      • MigrationEventArgs
      • RelateOnTrashNotificationHandler
    • Umbraco.Cms.Core.Logging
      • MessageTemplates
    • Umbraco.Cms.Core.Logging.Serilog
      • SerilogLogger
    • Umbraco.Cms.Core.Logging.Serilog.Enrichers
      • HttpRequestIdEnricher
      • HttpRequestNumberEnricher
      • HttpSessionIdEnricher
      • ThreadAbortExceptionEnricher
    • Umbraco.Cms.Core.Logging.Viewer
      • ILogFilter
      • ILogLevelLoader
      • ILogViewer
      • ILogViewerConfig
      • LogLevelCounts
      • LogLevelLoader
      • LogMessage
      • LogTemplate
      • LogTimePeriod
      • LogViewerConfig
      • SavedLogSearch
      • SerilogLogViewerSourceBase
    • Umbraco.Cms.Core.Manifest
      • ManifestParser
    • Umbraco.Cms.Core.Mapping
      • UmbracoMapper
    • Umbraco.Cms.Core.Migrations
      • IMigrationPlanExecutor
    • Umbraco.Cms.Core.Models
      • GridValue
      • GridValue.GridArea
      • GridValue.GridControl
      • GridValue.GridEditor
      • GridValue.GridRow
      • GridValue.GridSection
      • MediaWithCrops
      • MediaWithCrops<T>
    • Umbraco.Cms.Core.Models.Blocks
      • BlockEditorData
      • BlockEditorDataConverter
      • BlockItemData
      • BlockItemData.BlockPropertyValue
      • BlockListEditorDataConverter
      • BlockListLayoutItem
      • BlockValue
    • Umbraco.Cms.Core.Models.Mapping
      • EntityMapDefinition
    • Umbraco.Cms.Core.Models.Trees
      • TreeRootNode
    • Umbraco.Cms.Core.Packaging
      • PackageMigrationPlan
      • PackageMigrationPlanCollection
      • PackageMigrationPlanCollectionBuilder
      • PendingPackageMigrations
    • Umbraco.Cms.Core.Persistence.Repositories
      • IContentRepository<TId, TEntity>
      • IContentTypeRepository
      • IContentTypeRepositoryBase<TItem>
      • IDataTypeRepository
      • IDocumentBlueprintRepository
      • IDocumentRepository
      • IEntityRepository
      • IMediaRepository
      • IMediaTypeRepository
      • IMemberRepository
      • IMemberTypeRepository
      • IPublicAccessRepository
    • Umbraco.Cms.Core.PropertyEditors
      • BlockEditorPropertyEditor
      • BlockEditorPropertyHandler
      • BlockListPropertyEditor
      • CheckBoxListPropertyEditor
      • ColorPickerPropertyEditor
      • ComplexEditorValidator
      • ComplexEditorValidator.ElementTypeValidationModel
      • ComplexEditorValidator.PropertyTypeValidationModel
      • ComplexPropertyEditorContentNotificationHandler
      • ConfigurationEditor<TConfiguration>
      • ContentPickerPropertyEditor
      • DateTimeConfigurationEditor
      • DateTimePropertyEditor
      • DropDownFlexiblePropertyEditor
      • EmailAddressConfigurationEditor
      • EmailAddressPropertyEditor
      • EyeDropperColorPickerPropertyEditor
      • FileUploadConfigurationEditor
      • FileUploadPropertyEditor
      • GridConfiguration
      • GridConfigurationEditor
      • GridEditorModel
      • GridEditorSectionModel
      • GridEditorTemplateModel
      • GridPropertyEditor
      • GridPropertyIndexValueFactory
      • GridValidator
      • ImageCropperConfiguration
      • ImageCropperConfiguration.Crop
      • ImageCropperPropertyEditor
      • LabelConfigurationEditor
      • LabelPropertyEditor
      • ListViewConfigurationEditor
      • ListViewPropertyEditor
      • MarkdownPropertyEditor
      • MediaPicker3ConfigurationEditor
      • MediaPicker3PropertyEditor
      • MediaPickerConfigurationEditor
      • MediaPickerPropertyEditor
      • MediaPickerPropertyEditor.MediaPickerPropertyValueEditor
      • MultiNodePickerConfigurationEditor
      • MultiNodeTreePickerPropertyEditor
      • MultiNodeTreePickerPropertyEditor.MultiNodeTreePickerPropertyValueEditor
      • MultipleTextStringPropertyEditor
      • MultipleValueEditor
      • MultiUrlPickerConfigurationEditor
      • MultiUrlPickerPropertyEditor
      • MultiUrlPickerValueEditor
      • MultiUrlPickerValueEditor.LinkDto
      • NestedContentConfigurationEditor
      • NestedContentPropertyEditor
      • NestedContentPropertyHandler
      • RadioButtonsPropertyEditor
      • RichTextConfigurationEditor
      • RichTextEditorPastedImages
      • RichTextPropertyEditor
      • SliderConfigurationEditor
      • SliderPropertyEditor
      • TagConfigurationEditor
      • TagsPropertyEditor
      • TextAreaConfigurationEditor
      • TextAreaPropertyEditor
      • TextboxConfigurationEditor
      • TextboxPropertyEditor
      • TrueFalseConfigurationEditor
      • TrueFalsePropertyEditor
      • ValueListConfigurationEditor
      • ValueListUniqueValueValidator
    • Umbraco.Cms.Core.PropertyEditors.ValueConverters
      • BlockEditorConverter
      • BlockListPropertyValueConverter
      • ColorPickerValueConverter
      • ColorPickerValueConverter.PickedColor
      • FlexibleDropdownPropertyValueConverter
      • GridValueConverter
      • ImageCropperValue
      • ImageCropperValue.ImageCropperCrop
      • ImageCropperValue.ImageCropperCropCoordinates
      • ImageCropperValue.ImageCropperFocalPoint
      • ImageCropperValueConverter
      • ImageCropperValueTypeConverter
      • JsonValueConverter
      • MarkdownEditorValueConverter
      • MediaPickerWithCropsValueConverter
      • MultiUrlPickerValueConverter
      • NestedContentManyValueConverter
      • NestedContentSingleValueConverter
      • NestedContentValueConverterBase
      • RteMacroRenderingValueConverter
    • Umbraco.Cms.Core.PublishedCache
      • PublishedContentTypeCache
    • Umbraco.Cms.Core.Routing
      • ContentFinderByConfigured404
      • RedirectTrackingHandler
    • Umbraco.Cms.Core.Scoping
      • IHttpScopeReference
      • IScope
      • IScopeAccessor
      • IScopeProvider
      • ScopeContextualBase
    • Umbraco.Cms.Core.Security
      • BackOfficeClaimsPrincipalFactory
      • BackOfficeErrorDescriber
      • BackOfficeIdentityBuilder
      • BackOfficeIdentityOptions
      • BackOfficeIdentityUser
      • BackOfficePasswordHasher
      • BackOfficeUserStore
      • BackOfficeUserValidator<T>
      • IBackOfficeUserManager
      • IBackOfficeUserPasswordChecker
      • IdentityMapDefinition
      • IMemberManager
      • IMemberUserStore
      • ITwoFactorProvider
      • IUmbracoUserManager<TUser>
      • IUserSessionStore<TUser>
      • MemberIdentityBuilder
      • MemberIdentityUser
      • MemberPasswordHasher
      • MemberRoleStore
      • MembersErrorDescriber
      • MemberUserStore
      • NoopLookupNormalizer
      • UmbracoErrorDescriberBase
      • UmbracoIdentityRole
      • UmbracoIdentityUser
      • UmbracoPasswordHasher<TUser>
      • UmbracoUserConfirmation<TUser>
      • UmbracoUserManager<TUser, TPasswordConfig>
      • UmbracoUserStore<TUser, TRole>
    • Umbraco.Cms.Core.Services
      • IdKeyMap
      • TwoFactorLoginService
    • Umbraco.Cms.Core.Services.Implement
      • AuditService
      • BasicAuthService
      • CacheInstructionService
      • ContentService
      • ContentTypeBaseServiceProvider
      • ContentTypeService
      • ContentTypeServiceBase
      • ContentTypeServiceBase<TRepository, TItem>
      • DataTypeService
      • DomainService
      • EntityService
      • ExternalLoginService
      • FileService
      • LocalizedTextService
      • LocalizedTextServiceFileSources
      • LocalizedTextServiceSupplementaryFileSource
      • MediaService
      • MediaTypeService
      • MemberService
      • MemberTypeService
      • NotificationService
      • PackagingService
      • PropertyValidationService
      • RelationService
      • RepositoryService
      • ServerRegistrationService
      • TagService
      • TrackedReferencesService
    • Umbraco.Cms.Infrastructure
      • PublishedContentQuery
      • Suspendable
      • Suspendable.ExamineEvents
      • Suspendable.PageCacheRefresher
      • Suspendable.ScheduledPublishing
    • Umbraco.Cms.Infrastructure.DependencyInjection
      • UmbracoBuilder_TelemetryProviders
      • UmbracoBuilderExtensions
    • Umbraco.Cms.Infrastructure.Examine
      • BaseValueSetBuilder<TContent>
      • ContentIndexPopulator
      • ContentValueSetBuilder
      • ContentValueSetValidator
      • ExamineIndexModel
      • ExamineIndexRebuilder
      • ExamineSearcherModel
      • GenericIndexDiagnostics
      • IBackOfficeExamineSearcher
      • IContentValueSetBuilder
      • IContentValueSetValidator
      • IIndexDiagnostics
      • IIndexDiagnosticsFactory
      • IIndexPopulator
      • IIndexRebuilder
      • IndexDiagnosticsFactory
      • IndexPopulator
      • IndexPopulator<TIndex>
      • IndexTypes
      • IPublishedContentValueSetBuilder
      • IUmbracoContentIndex
      • IUmbracoIndex
      • IUmbracoIndexConfig
      • IUmbracoMemberIndex
      • IUmbracoTreeSearcherFields
      • IValueSetBuilder<T>
      • MediaIndexPopulator
      • MediaValueSetBuilder
      • MemberIndexPopulator
      • MemberValueSetBuilder
      • MemberValueSetValidator
      • NoopBackOfficeExamineSearcher
      • PublishedContentIndexPopulator
      • RebuildOnStartupHandler
      • UmbracoExamineFieldNames
      • UmbracoFieldDefinitionCollection
      • UmbracoIndexConfig
      • ValueSetValidator
    • Umbraco.Cms.Infrastructure.HealthChecks
      • MarkdownToHtmlConverter
    • Umbraco.Cms.Infrastructure.HostedServices
      • BackgroundTaskQueue
      • ContentVersionCleanup
      • HealthCheckNotifier
      • IBackgroundTaskQueue
      • KeepAlive
      • LogScrubber
      • QueuedHostedService
      • RecurringHostedServiceBase
      • ReportSiteTask
      • ScheduledPublishing
      • TempFileCleanup
    • Umbraco.Cms.Infrastructure.HostedServices.ServerRegistration
      • InstructionProcessTask
      • TouchServerTask
    • Umbraco.Cms.Infrastructure.Install
      • FilePermissionHelper
      • InstallHelper
      • InstallStepCollection
      • PackageMigrationRunner
      • UnattendedInstaller
      • UnattendedUpgrader
    • Umbraco.Cms.Infrastructure.Install.InstallSteps
      • CompleteInstallStep
      • DatabaseConfigureStep
      • DatabaseInstallStep
      • DatabaseUpgradeStep
      • NewInstallStep
    • Umbraco.Cms.Infrastructure.Logging.Serilog
      • UmbracoFileConfiguration
    • Umbraco.Cms.Infrastructure.Macros
      • MacroTagParser
    • Umbraco.Cms.Infrastructure.Mail
      • EmailSender
    • Umbraco.Cms.Infrastructure.Media
      • ImageSharpImageUrlGenerator
    • Umbraco.Cms.Infrastructure.Migrations
      • ExecutedMigrationPlan
      • IMigrationBuilder
      • IMigrationContext
      • IMigrationExpression
      • IncompleteMigrationExpressionException
      • MergeBuilder
      • MigrationBase
      • MigrationBuilder
      • MigrationExpressionBase
      • MigrationPlan
      • MigrationPlan.Transition
      • MigrationPlanExecutor
      • NoopMigration
    • Umbraco.Cms.Infrastructure.Migrations.Expressions
      • ExpressionBuilderBase<TExpression, TNext>
      • ExpressionBuilderBase<TExpression>
      • IFluentBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Alter
      • AlterBuilder
      • IAlterBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Alter.Expressions
      • AlterColumnExpression
      • AlterDefaultConstraintExpression
      • AlterTableExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Alter.Table
      • AlterTableBuilder
      • IAlterTableBuilder
      • IAlterTableColumnOptionBuilder
      • IAlterTableColumnOptionForeignKeyCascadeBuilder
      • IAlterTableColumnTypeBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Common
      • ExecutableBuilder
      • IColumnOptionBuilder<TNext, TNextFk>
      • IColumnTypeBuilder<TNext>
      • IExecutableBuilder
      • IForeignKeyCascadeBuilder<TNext, TNextFk>
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Common.Expressions
      • CreateColumnExpression
      • CreateForeignKeyExpression
      • CreateIndexExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create
      • CreateBuilder
      • ICreateBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Column
      • CreateColumnBuilder
      • ICreateColumnOnTableBuilder
      • ICreateColumnOptionBuilder
      • ICreateColumnOptionForeignKeyCascadeBuilder
      • ICreateColumnTypeBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Constraint
      • CreateConstraintBuilder
      • ICreateConstraintColumnsBuilder
      • ICreateConstraintOnTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Expressions
      • CreateConstraintExpression
      • CreateTableExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.ForeignKey
      • CreateForeignKeyBuilder
      • ICreateForeignKeyCascadeBuilder
      • ICreateForeignKeyForeignColumnBuilder
      • ICreateForeignKeyFromTableBuilder
      • ICreateForeignKeyPrimaryColumnBuilder
      • ICreateForeignKeyToTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Index
      • CreateIndexBuilder
      • ICreateIndexColumnOptionsBuilder
      • ICreateIndexForTableBuilder
      • ICreateIndexOnColumnBuilder
      • ICreateIndexOptionsBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.KeysAndIndexes
      • CreateKeysAndIndexesBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Table
      • CreateTableBuilder
      • CreateTableOfDtoBuilder
      • ICreateTableColumnAsTypeBuilder
      • ICreateTableColumnOptionBuilder
      • ICreateTableColumnOptionForeignKeyCascadeBuilder
      • ICreateTableWithColumnBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete
      • DeleteBuilder
      • IDeleteBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Column
      • DeleteColumnBuilder
      • IDeleteColumnBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Constraint
      • DeleteConstraintBuilder
      • IDeleteConstraintBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Data
      • DeleteDataBuilder
      • IDeleteDataBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.DefaultConstraint
      • DeleteDefaultConstraintBuilder
      • IDeleteDefaultConstraintOnColumnBuilder
      • IDeleteDefaultConstraintOnTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Expressions
      • DeleteColumnExpression
      • DeleteConstraintExpression
      • DeleteDataExpression
      • DeleteDefaultConstraintExpression
      • DeleteForeignKeyExpression
      • DeleteIndexExpression
      • DeleteTableExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.ForeignKey
      • DeleteForeignKeyBuilder
      • IDeleteForeignKeyForeignColumnBuilder
      • IDeleteForeignKeyFromTableBuilder
      • IDeleteForeignKeyOnTableBuilder
      • IDeleteForeignKeyPrimaryColumnBuilder
      • IDeleteForeignKeyToTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.Index
      • DeleteIndexBuilder
      • IDeleteIndexForTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Delete.KeysAndIndexes
      • DeleteKeysAndIndexesBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Execute
      • ExecuteBuilder
      • IExecuteBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Execute.Expressions
      • ExecuteSqlStatementExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Insert
      • IInsertBuilder
      • IInsertIntoBuilder
      • InsertBuilder
      • InsertIntoBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Insert.Expressions
      • InsertDataExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename
      • IRenameBuilder
      • RenameBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename.Column
      • IRenameColumnBuilder
      • IRenameColumnToBuilder
      • RenameColumnBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename.Expressions
      • RenameColumnExpression
      • RenameTableExpression
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Rename.Table
      • IRenameTableBuilder
      • RenameTableBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Update
      • IUpdateBuilder
      • IUpdateTableBuilder
      • IUpdateWhereBuilder
      • UpdateBuilder
      • UpdateDataBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Expressions.Update.Expressions
      • UpdateDataExpression
    • Umbraco.Cms.Infrastructure.Migrations.Install
      • DatabaseBuilder
      • DatabaseBuilder.Result
      • DatabaseSchemaCreator
      • DatabaseSchemaCreatorFactory
      • DatabaseSchemaResult
    • Umbraco.Cms.Infrastructure.Migrations.Notifications
      • MigrationPlansExecutedNotification
    • Umbraco.Cms.Infrastructure.Migrations.PostMigrations
      • ClearCsrfCookies
      • DeleteLogViewerQueryFile
      • IPublishedSnapshotRebuilder
      • PublishedSnapshotRebuilder
      • RebuildPublishedSnapshot
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade
      • UmbracoPlan
      • Upgrader
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.Common
      • CreateKeysAndIndexes
      • DeleteKeysAndIndexes
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_0
      • AddContentTypeIsElementColumn
      • AddLockObjects
      • AddLogTableColumns
      • AddPackagesSectionAccess
      • AddTypedLabels
      • AddVariationTables1A
      • AddVariationTables2
      • ContentVariationMigration
      • ConvertRelatedLinksToMultiUrlPicker
      • DataTypeMigration
      • DropDownPropertyEditorsMigration
      • DropMigrationsTable
      • DropPreValueTable
      • DropTaskTables
      • DropTemplateDesignColumn
      • DropXmlTables
      • FallbackLanguage
      • FixLanguageIsoCodeLength
      • LanguageColumns
      • MakeRedirectUrlVariant
      • MakeTagsVariant
      • MergeDateAndDateTimePropertyEditor
      • PropertyEditorsMigration
      • PropertyEditorsMigrationBase
      • PropertyEditorsMigrationBase.ValueListConfigurationEditor
      • RadioAndCheckboxPropertyEditorsMigration
      • RefactorMacroColumns
      • RefactorVariantsModel
      • RenameLabelAndRichTextPropertyEditorAliases
      • RenameMediaVersionTable
      • RenameUmbracoDomainsTable
      • SuperZero
      • TablesForScheduledPublishing
      • TagsMigration
      • TagsMigrationFix
      • UpdateDefaultMandatoryLanguage
      • UpdatePickerIntegerValuesToUdi
      • UserForeignKeys
      • VariantsMigration
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_0.DataTypes
      • IPreValueMigrator
      • PreValueDto
      • PreValueMigratorBase
      • PreValueMigratorCollection
      • PreValueMigratorCollectionBuilder
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_1
      • ChangeNuCacheJsonFormat
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_1_0
      • ConvertTinyMceAndGridMediaUrlsToLocalLink
      • FixContentNuCascade
      • RenameUserLoginDtoDateIndex
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_10_0
      • AddPropertyTypeLabelOnTopColumn
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_15_0
      • AddCmsContentNuByteColumn
      • UpdateCmsPropertyGroupIdSeed
      • UpgradedIncludeIndexes
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_17_0
      • AddPropertyTypeGroupColumns
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_6_0
      • AddMainDomLock
      • AddNewRelationTypes
      • AddPropertyTypeValidationMessageColumns
      • MissingContentVersionsIndexes
      • UpdateRelationTypeTable
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_7_0
      • MissingDictionaryIndex
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_9_0
      • ExternalLoginTableUserData
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_0_0
      • AddPasswordConfigToMemberTable
      • DictionaryTablesIndexes
      • ExternalLoginTableIndexes
      • ExternalLoginTableIndexesFixup
      • ExternalLoginTokenTable
      • MemberTableColumns
      • MigrateLogViewerQueriesFromFileToDb
      • UmbracoServerColumn
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_2_0
      • AddDefaultForNotificationsToggle
    • Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_3_0
      • AddTwoFactorLoginTable
      • MovePackageXMLToDb
      • UpdateExternalLoginToUseKeyInsteadOfId
    • Umbraco.Cms.Infrastructure.ModelsBuilder
      • ApiVersion
      • AutoModelsNotificationHandler
      • ImplementPropertyTypeAttribute
      • ModelsBuilderAssemblyAttribute
      • ModelsGenerationError
      • OutOfDateModelsStatus
      • PublishedModelUtility
      • RoslynCompiler
      • UmbracoServices
    • Umbraco.Cms.Infrastructure.ModelsBuilder.Building
      • Builder
      • ModelsGenerator
      • PropertyModel
      • TextBuilder
      • TypeModel
      • TypeModel.ItemTypes
      • TypeModelHasher
    • Umbraco.Cms.Infrastructure.Packaging
      • AutomaticPackageMigrationPlan
      • IImportPackageBuilder
      • PackageDataInstallation
      • PackageInstallation
      • PackageMigrationBase
    • Umbraco.Cms.Infrastructure.Persistence
      • BasicBulkSqlInsertProvider
      • DbProviderFactoryCreator
      • IBulkSqlInsertProvider
      • IDatabaseCreator
      • IDbProviderFactoryCreator
      • IProviderSpecificMapperFactory
      • ISqlContext
      • IUmbracoDatabase
      • IUmbracoDatabaseFactory
      • LocalDb
      • LocalDb.Instance
      • NPocoMapperCollection
      • NPocoMapperCollectionBuilder
      • RecordPersistenceType
      • SqlContext
      • SqlServerBulkSqlInsertProvider
      • SqlServerDatabaseCreator
      • SqlServerDbProviderFactoryCreator
      • SqlTemplate
      • SqlTemplates
      • UmbracoDatabase
      • UmbracoDatabase.CommandInfo
      • UmbracoDatabase.ParameterInfo
      • UmbracoDatabaseFactory
    • Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
      • ConstraintAttribute
      • ForeignKeyAttribute
      • IndexAttribute
      • IndexTypes
      • LengthAttribute
      • NullSettingAttribute
      • NullSettings
      • PrimaryKeyColumnAttribute
      • ReferencesAttribute
      • SpecialDbType
      • SpecialDbTypeAttribute
      • SpecialDbTypes
    • Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
      • ColumnDefinition
      • ConstraintDefinition
      • ConstraintType
      • DeletionDataDefinition
      • ForeignKeyDefinition
      • IndexColumnDefinition
      • IndexDefinition
      • InsertionDataDefinition
      • ModificationType
      • SystemMethods
      • TableDefinition
    • Umbraco.Cms.Infrastructure.Persistence.Dtos
      • CacheInstructionDto
      • ConsentDto
      • ContentDto
      • ContentNuDto
      • ContentVersionDto
      • CreatedPackageSchemaDto
      • DataTypeDto
      • DictionaryDto
      • DocumentDto
      • DocumentVersionDto
      • LanguageTextDto
      • NodeDto
      • User2UserGroupDto
      • UserDto
      • UserGroup2AppDto
      • UserGroupDto
      • UserStartNodeDto
      • UserStartNodeDto.StartNodeTypeValue
    • Umbraco.Cms.Infrastructure.Persistence.FaultHandling
      • ITransientErrorDetectionStrategy
      • RetryingEventArgs
      • RetryLimitExceededException
      • RetryPolicy
      • RetryPolicyFactory
      • RetryStrategy
      • ShouldRetry
      • ThrottledResourceType
      • ThrottlingCondition
      • ThrottlingMode
      • ThrottlingType
    • Umbraco.Cms.Infrastructure.Persistence.FaultHandling.Strategies
      • ExponentialBackoff
      • FixedInterval
      • Incremental
      • NetworkConnectivityErrorDetectionStrategy
      • SqlAzureTransientErrorDetectionStrategy
    • Umbraco.Cms.Infrastructure.Persistence.Mappers
      • AccessMapper
      • AuditEntryMapper
      • AuditItemMapper
      • BaseMapper
      • ConsentMapper
      • ContentMapper
      • ContentTypeMapper
      • DataTypeMapper
      • DictionaryMapper
      • DictionaryTranslationMapper
      • DomainMapper
      • ExternalLoginMapper
      • ExternalLoginTokenMapper
      • IMapperCollection
      • KeyValueMapper
      • LanguageMapper
      • LogViewerQueryMapper
      • MapperCollection
      • MapperCollectionBuilder
      • MapperConfigurationStore
      • MapperForAttribute
      • MediaMapper
      • MediaTypeMapper
      • MemberGroupMapper
      • MemberMapper
      • MemberTypeMapper
      • NullableDateMapper
      • PropertyGroupMapper
      • PropertyMapper
      • PropertyTypeMapper
      • RelationMapper
      • RelationTypeMapper
      • SimpleContentTypeMapper
      • TagMapper
      • TemplateMapper
      • UmbracoEntityMapper
      • UserGroupMapper
      • UserMapper
    • Umbraco.Cms.Infrastructure.Persistence.Querying
      • Query<T>
      • SqlTranslator<T>
      • TextColumnType
    • Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
      • ContentRepositoryBase<TId, TEntity, TRepository>
      • ContentRepositoryBase<TId, TEntity, TRepository>.TempContent
      • ContentRepositoryBase<TId, TEntity, TRepository>.TempContent<T>
      • CreatedPackageSchemaRepository
      • DocumentRepository
      • EntityRepositoryBase<TId, TEntity>
      • MediaRepository
      • MemberRepository
      • NotificationsRepository
      • QueryType
      • RepositoryBase
      • UserGroupRepository
    • Umbraco.Cms.Infrastructure.Persistence.SqlSyntax
      • ColumnInfo
      • DbTypes
      • ISqlSyntaxProvider
      • MicrosoftSqlSyntaxProviderBase<TSyntax>
      • SqlServerSyntaxProvider
      • SqlServerSyntaxProvider.EngineEdition
      • SqlServerSyntaxProvider.ServerVersionInfo
      • SqlServerSyntaxProvider.VersionName
      • SqlSyntaxProviderBase<TSyntax>
    • Umbraco.Cms.Infrastructure.Runtime
      • CoreRuntime
      • RuntimeState
      • SqlMainDomLock
    • Umbraco.Cms.Infrastructure.Search
      • ContentIndexingNotificationHandler
      • ContentTypeIndexingNotificationHandler
      • IUmbracoIndexingHandler
      • LanguageIndexingNotificationHandler
      • MediaIndexingNotificationHandler
      • MemberIndexingNotificationHandler
      • UmbracoTreeSearcher
      • UmbracoTreeSearcherFields
    • Umbraco.Cms.Infrastructure.Security
      • DeleteExternalLoginsOnMemberDeletedHandler
      • DeleteTwoFactorLoginsOnMemberDeletedHandler
      • SignOutSuccessResult
    • Umbraco.Cms.Infrastructure.Serialization
      • AutoInterningStringConverter
      • AutoInterningStringKeyCaseInsensitiveDictionaryConverter<TValue>
      • CaseInsensitiveDictionaryConverter<T>
      • ConfigurationEditorJsonSerializer
      • ForceInt32Converter
      • FuzzyBooleanConverter
      • JsonNetSerializer
      • JsonReadConverter<T>
      • KnownTypeUdiJsonConverter
      • NoTypeConverterJsonConverter<T>
      • UdiJsonConverter
      • UdiRangeJsonConverter
    • Umbraco.Cms.Infrastructure.Services.Implement
      • DefaultContentVersionCleanupPolicy
      • ExamineIndexCountService
      • NodeCountService
    • Umbraco.Cms.Infrastructure.Sync
      • BatchedDatabaseServerMessenger
      • DatabaseServerMessenger
      • LastSyncedFileManager
      • RefreshInstructionEnvelope
      • ServerMessengerBase
      • SyncBootStateAccessor
    • Umbraco.Cms.Infrastructure.Telemetry.Providers
      • ContentTelemetryProvider
      • DomainTelemetryProvider
      • ExamineTelemetryProvider
      • LanguagesTelemetryProvider
      • MacroTelemetryProvider
      • MediaTelemetryProvider
      • NodeCountTelemetryProvider
      • PropertyEditorTelemetryProvider
      • UserTelemetryProvider
    • Umbraco.Cms.Infrastructure.Templates
      • HtmlMacroParameterParser
      • IHtmlMacroParameterParser
    • Umbraco.Cms.Infrastructure.WebAssets
      • BackOfficeJavaScriptInitializer
      • BackOfficeWebAssets
      • PropertyEditorAssetAttribute
      • ServerVariablesParser
    • Umbraco.Extensions
      • DbConnectionExtensions
      • DistributedCacheExtensions
      • ExamineExtensions
      • IdentityExtensions
      • InfrastuctureTypeLoaderExtensions
      • LoggerConfigExtensions
      • MediaPicker3ConfigurationExtensions
      • MergeClaimsIdentityExtensions
      • NPocoDatabaseExtensions
      • NPocoSqlExtensions
      • NPocoSqlExtensions.SqlRef<TDto>
      • NPocoSqlExtensions.SqlUpd<TDto>
      • ObjectJsonExtensions
      • PublishedElementExtensions
      • ScopeExtensions
      • SqlContextExtensions
      • SqlSyntaxExtensions
      • UmbracoBuilderExtensions
      • UmbracoExamineExtensions

    Class MediaService

    Represents the Media Service, which is an easy access to operations involving

    Inheritance
    System.Object
    RepositoryService
    Namespace: Umbraco.Cms.Core.Services.Implement
    Assembly: cs.temp.dll.dll
    Syntax
    public class MediaService : RepositoryService

    Constructors

    MediaService(IScopeProvider, MediaFileManager, ILoggerFactory, IEventMessagesFactory, IMediaRepository, IAuditRepository, IMediaTypeRepository, IEntityRepository, IShortStringHelper)

    Declaration
    public MediaService(IScopeProvider provider, MediaFileManager mediaFileManager, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IMediaRepository mediaRepository, IAuditRepository auditRepository, IMediaTypeRepository mediaTypeRepository, IEntityRepository entityRepository, IShortStringHelper shortStringHelper)
    Parameters
    Type Name Description
    IScopeProvider provider
    MediaFileManager mediaFileManager
    ILoggerFactory loggerFactory
    IEventMessagesFactory eventMessagesFactory
    IMediaRepository mediaRepository
    IAuditRepository auditRepository
    IMediaTypeRepository mediaTypeRepository
    IEntityRepository entityRepository
    IShortStringHelper shortStringHelper

    Methods

    CheckDataIntegrity(ContentDataIntegrityReportOptions)

    Declaration
    public ContentDataIntegrityReport CheckDataIntegrity(ContentDataIntegrityReportOptions options)
    Parameters
    Type Name Description
    ContentDataIntegrityReportOptions options
    Returns
    Type Description
    ContentDataIntegrityReport

    Count(String)

    Declaration
    public int Count(string mediaTypeAlias = null)
    Parameters
    Type Name Description
    System.String mediaTypeAlias
    Returns
    Type Description
    System.Int32

    CountChildren(Int32, String)

    Declaration
    public int CountChildren(int parentId, string mediaTypeAlias = null)
    Parameters
    Type Name Description
    System.Int32 parentId
    System.String mediaTypeAlias
    Returns
    Type Description
    System.Int32

    CountDescendants(Int32, String)

    Declaration
    public int CountDescendants(int parentId, string mediaTypeAlias = null)
    Parameters
    Type Name Description
    System.Int32 parentId
    System.String mediaTypeAlias
    Returns
    Type Description
    System.Int32

    CountNotTrashed(String)

    Declaration
    public int CountNotTrashed(string mediaTypeAlias = null)
    Parameters
    Type Name Description
    System.String mediaTypeAlias
    Returns
    Type Description
    System.Int32

    CreateMedia(String, IMedia, String, Int32)

    Creates an object of a specified media type, under a parent.

    Declaration
    public IMedia CreateMedia(string name, IMedia parent, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    The name of the media object.

    IMedia parent

    The parent media object.

    System.String mediaTypeAlias

    The alias of the media type.

    System.Int32 userId

    The optional id of the user creating the media.

    Returns
    Type Description
    IMedia

    The media object.

    Remarks

    This method simply returns a new, non-persisted, IMedia without any identity. It is intended as a shortcut to creating new media objects that does not invoke a save operation against the database.

    CreateMedia(String, Guid, String, Int32)

    Creates an object using the alias of the that this Media should based on.

    Declaration
    public IMedia CreateMedia(string name, Guid parentId, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    Name of the Media object

    System.Guid parentId

    Id of Parent for the new Media item

    System.String mediaTypeAlias

    Alias of the

    System.Int32 userId

    Optional id of the user creating the media item

    Returns
    Type Description
    IMedia
    Remarks

    Note that using this method will simply return a new IMedia without any identity as it has not yet been persisted. It is intended as a shortcut to creating new media objects that does not invoke a save operation against the database.

    CreateMedia(String, Int32, String, Int32)

    Creates an object of a specified media type.

    Declaration
    public IMedia CreateMedia(string name, int parentId, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    The name of the media object.

    System.Int32 parentId

    The identifier of the parent, or -1.

    System.String mediaTypeAlias

    The alias of the media type.

    System.Int32 userId

    The optional id of the user creating the media.

    Returns
    Type Description
    IMedia

    The media object.

    Remarks

    This method simply returns a new, non-persisted, IMedia without any identity. It is intended as a shortcut to creating new media objects that does not invoke a save operation against the database.

    CreateMedia(String, String, Int32)

    Creates an object of a specified media type, at root.

    Declaration
    public IMedia CreateMedia(string name, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    The name of the media object.

    System.String mediaTypeAlias

    The alias of the media type.

    System.Int32 userId

    The optional id of the user creating the media.

    Returns
    Type Description
    IMedia

    The media object.

    Remarks

    This method simply returns a new, non-persisted, IMedia without any identity. It is intended as a shortcut to creating new media objects that does not invoke a save operation against the database.

    CreateMediaWithIdentity(String, IMedia, String, Int32)

    Creates an object of a specified media type, under a parent.

    Declaration
    public IMedia CreateMediaWithIdentity(string name, IMedia parent, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    The name of the media object.

    IMedia parent

    The parent media object.

    System.String mediaTypeAlias

    The alias of the media type.

    System.Int32 userId

    The optional id of the user creating the media.

    Returns
    Type Description
    IMedia

    The media object.

    Remarks

    This method returns a new, persisted, IMedia with an identity.

    CreateMediaWithIdentity(String, Int32, String, Int32)

    Creates an object of a specified media type.

    Declaration
    public IMedia CreateMediaWithIdentity(string name, int parentId, string mediaTypeAlias, int userId = default(int))
    Parameters
    Type Name Description
    System.String name

    The name of the media object.

    System.Int32 parentId

    The identifier of the parent, or -1.

    System.String mediaTypeAlias

    The alias of the media type.

    System.Int32 userId

    The optional id of the user creating the media.

    Returns
    Type Description
    IMedia

    The media object.

    Remarks

    This method returns a new, persisted, IMedia with an identity.

    Delete(IMedia, Int32)

    Permanently deletes an object

    Declaration
    public Attempt<OperationResult> Delete(IMedia media, int userId = default(int))
    Parameters
    Type Name Description
    IMedia media

    The to delete

    System.Int32 userId

    Id of the User deleting the Media

    Returns
    Type Description
    Attempt<OperationResult>

    DeleteMediaFile(String)

    Declaration
    public void DeleteMediaFile(string filepath)
    Parameters
    Type Name Description
    System.String filepath

    DeleteMediaOfType(Int32, Int32)

    Deletes all media of specified type. All children of deleted media is moved to Recycle Bin.

    Declaration
    public void DeleteMediaOfType(int mediaTypeId, int userId = default(int))
    Parameters
    Type Name Description
    System.Int32 mediaTypeId

    Id of the

    System.Int32 userId

    Optional id of the user deleting the media

    Remarks

    This needs extra care and attention as its potentially a dangerous and extensive operation

    DeleteMediaOfTypes(IEnumerable<Int32>, Int32)

    Deletes all media of specified type. All children of deleted media is moved to Recycle Bin.

    Declaration
    public void DeleteMediaOfTypes(IEnumerable<int> mediaTypeIds, int userId = default(int))
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Int32> mediaTypeIds

    Id of the

    System.Int32 userId

    Optional id of the user deleting the media

    Remarks

    This needs extra care and attention as its potentially a dangerous and extensive operation.

    Deletes media items of the specified type, and only that type. Does not handle content types inheritance and compositions, which need to be managed outside of this method.

    DeleteVersion(Int32, Int32, Boolean, Int32)

    Permanently deletes specific version(s) from an object. This method will never delete the latest version of a media item.

    Declaration
    public void DeleteVersion(int id, int versionId, bool deletePriorVersions, int userId = default(int))
    Parameters
    Type Name Description
    System.Int32 id

    Id of the object to delete a version from

    System.Int32 versionId

    Id of the version to delete

    System.Boolean deletePriorVersions

    Boolean indicating whether to delete versions prior to the versionId

    System.Int32 userId

    Optional Id of the User deleting versions of a Media object

    DeleteVersions(Int32, DateTime, Int32)

    Permanently deletes versions from an object prior to a specific date. This method will never delete the latest version of a media item.

    Declaration
    public void DeleteVersions(int id, DateTime versionDate, int userId = default(int))
    Parameters
    Type Name Description
    System.Int32 id

    Id of the object to delete versions from

    System.DateTime versionDate

    Latest version date

    System.Int32 userId

    Optional Id of the User deleting versions of a Media object

    EmptyRecycleBin(Int32)

    Empties the Recycle Bin by deleting all that resides in the bin

    Declaration
    public OperationResult EmptyRecycleBin(int userId = default(int))
    Parameters
    Type Name Description
    System.Int32 userId

    Optional Id of the User emptying the Recycle Bin

    Returns
    Type Description
    OperationResult

    GetAncestors(IMedia)

    Gets a collection of objects, which are ancestors of the current media.

    Declaration
    public IEnumerable<IMedia> GetAncestors(IMedia media)
    Parameters
    Type Name Description
    IMedia media

    to retrieve ancestors for

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    An Enumerable list of objects

    GetAncestors(Int32)

    Gets a collection of objects, which are ancestors of the current media.

    Declaration
    public IEnumerable<IMedia> GetAncestors(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of the to retrieve ancestors for

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    An Enumerable list of objects

    GetById(Guid)

    Gets an object by its 'UniqueId'

    Declaration
    public IMedia GetById(Guid key)
    Parameters
    Type Name Description
    System.Guid key

    Guid key of the Media to retrieve

    Returns
    Type Description
    IMedia

    GetById(Int32)

    Gets an object by Id

    Declaration
    public IMedia GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of the Media to retrieve

    Returns
    Type Description
    IMedia

    GetByIds(IEnumerable<Guid>)

    Gets an object by Id

    Declaration
    public IEnumerable<IMedia> GetByIds(IEnumerable<Guid> ids)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Guid> ids

    Ids of the Media to retrieve

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetByIds(IEnumerable<Int32>)

    Gets an object by Id

    Declaration
    public IEnumerable<IMedia> GetByIds(IEnumerable<int> ids)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Int32> ids

    Ids of the Media to retrieve

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetByLevel(Int32)

    Gets a collection of objects by Level

    Declaration
    public IEnumerable<IMedia> GetByLevel(int level)
    Parameters
    Type Name Description
    System.Int32 level

    The level to retrieve Media from

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    An Enumerable list of objects

    Remarks

    Contrary to most methods, this method filters out trashed media items.

    GetMediaByPath(String)

    Gets an object from the path stored in the 'umbracoFile' property.

    Declaration
    public IMedia GetMediaByPath(string mediaPath)
    Parameters
    Type Name Description
    System.String mediaPath

    Path of the media item to retrieve (for example: /media/1024/koala_403x328.jpg)

    Returns
    Type Description
    IMedia

    GetMediaFileContentStream(String)

    Declaration
    public Stream GetMediaFileContentStream(string filepath)
    Parameters
    Type Name Description
    System.String filepath
    Returns
    Type Description
    Stream

    GetMediaFileSize(String)

    Declaration
    public long GetMediaFileSize(string filepath)
    Parameters
    Type Name Description
    System.String filepath
    Returns
    Type Description
    System.Int64

    GetPagedChildren(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)

    Declaration
    public IEnumerable<IMedia> GetPagedChildren(int id, long pageIndex, int pageSize, out long totalChildren, IQuery<IMedia> filter = null, Ordering ordering = null)
    Parameters
    Type Name Description
    System.Int32 id
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalChildren
    IQuery<IMedia> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetPagedDescendants(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)

    Declaration
    public IEnumerable<IMedia> GetPagedDescendants(int id, long pageIndex, int pageSize, out long totalChildren, IQuery<IMedia> filter = null, Ordering ordering = null)
    Parameters
    Type Name Description
    System.Int32 id
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalChildren
    IQuery<IMedia> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetPagedMediaInRecycleBin(Int64, Int32, out Int64, IQuery<IMedia>, Ordering)

    Declaration
    public IEnumerable<IMedia> GetPagedMediaInRecycleBin(long pageIndex, int pageSize, out long totalRecords, IQuery<IMedia> filter = null, Ordering ordering = null)
    Parameters
    Type Name Description
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IMedia> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetPagedOfType(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)

    Declaration
    public IEnumerable<IMedia> GetPagedOfType(int contentTypeId, long pageIndex, int pageSize, out long totalRecords, IQuery<IMedia> filter = null, Ordering ordering = null)
    Parameters
    Type Name Description
    System.Int32 contentTypeId
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IMedia> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetPagedOfTypes(Int32[], Int64, Int32, out Int64, IQuery<IMedia>, Ordering)

    Declaration
    public IEnumerable<IMedia> GetPagedOfTypes(int[] contentTypeIds, long pageIndex, int pageSize, out long totalRecords, IQuery<IMedia> filter = null, Ordering ordering = null)
    Parameters
    Type Name Description
    System.Int32[] contentTypeIds
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    IQuery<IMedia> filter
    Ordering ordering
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    GetParent(IMedia)

    Gets the parent of the current media as an item.

    Declaration
    public IMedia GetParent(IMedia media)
    Parameters
    Type Name Description
    IMedia media

    to retrieve the parent from

    Returns
    Type Description
    IMedia

    Parent object

    GetParent(Int32)

    Gets the parent of the current media as an item.

    Declaration
    public IMedia GetParent(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of the to retrieve the parent from

    Returns
    Type Description
    IMedia

    Parent object

    GetRootMedia()

    Gets a collection of objects, which reside at the first level / root

    Declaration
    public IEnumerable<IMedia> GetRootMedia()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    An Enumerable list of objects

    GetVersion(Int32)

    Gets a specific version of an item.

    Declaration
    public IMedia GetVersion(int versionId)
    Parameters
    Type Name Description
    System.Int32 versionId

    Id of the version to retrieve

    Returns
    Type Description
    IMedia

    An item

    GetVersions(Int32)

    Gets a collection of an objects versions by Id

    Declaration
    public IEnumerable<IMedia> GetVersions(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IMedia>

    An Enumerable list of objects

    HasChildren(Int32)

    Checks whether an item has any children

    Declaration
    public bool HasChildren(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of the

    Returns
    Type Description
    System.Boolean

    True if the media has any children otherwise False

    Move(IMedia, Int32, Int32)

    Moves an object to a new location

    Declaration
    public Attempt<OperationResult> Move(IMedia media, int parentId, int userId = default(int))
    Parameters
    Type Name Description
    IMedia media

    The to move

    System.Int32 parentId

    Id of the Media's new Parent

    System.Int32 userId

    Id of the User moving the Media

    Returns
    Type Description
    Attempt<OperationResult>

    MoveToRecycleBin(IMedia, Int32)

    Deletes an object by moving it to the Recycle Bin

    Declaration
    public Attempt<OperationResult> MoveToRecycleBin(IMedia media, int userId = default(int))
    Parameters
    Type Name Description
    IMedia media

    The to delete

    System.Int32 userId

    Id of the User deleting the Media

    Returns
    Type Description
    Attempt<OperationResult>

    RecycleBinSmells()

    Declaration
    public bool RecycleBinSmells()
    Returns
    Type Description
    System.Boolean

    Save(IMedia, Int32)

    Saves a single object

    Declaration
    public Attempt<OperationResult> Save(IMedia media, int userId = default(int))
    Parameters
    Type Name Description
    IMedia media

    The to save

    System.Int32 userId

    Id of the User saving the Media

    Returns
    Type Description
    Attempt<OperationResult>

    Save(IEnumerable<IMedia>, Int32)

    Saves a collection of objects

    Declaration
    public Attempt<OperationResult> Save(IEnumerable<IMedia> medias, int userId = default(int))
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IMedia> medias

    Collection of to save

    System.Int32 userId

    Id of the User saving the Media

    Returns
    Type Description
    Attempt<OperationResult>

    SetMediaFileContent(String, Stream)

    Declaration
    public void SetMediaFileContent(string filepath, Stream stream)
    Parameters
    Type Name Description
    System.String filepath
    Stream stream

    Sort(IEnumerable<IMedia>, Int32)

    Sorts a collection of objects by updating the SortOrder according to the ordering of items in the passed in System.Collections.Generic.IEnumerable<T>.

    Declaration
    public bool Sort(IEnumerable<IMedia> items, int userId = default(int))
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IMedia> items
    System.Int32 userId
    Returns
    Type Description
    System.Boolean

    True if sorting succeeded, otherwise False

    In This Article
    • Constructors
      • MediaService(IScopeProvider, MediaFileManager, ILoggerFactory, IEventMessagesFactory, IMediaRepository, IAuditRepository, IMediaTypeRepository, IEntityRepository, IShortStringHelper)
    • Methods
      • CheckDataIntegrity(ContentDataIntegrityReportOptions)
      • Count(String)
      • CountChildren(Int32, String)
      • CountDescendants(Int32, String)
      • CountNotTrashed(String)
      • CreateMedia(String, IMedia, String, Int32)
      • CreateMedia(String, Guid, String, Int32)
      • CreateMedia(String, Int32, String, Int32)
      • CreateMedia(String, String, Int32)
      • CreateMediaWithIdentity(String, IMedia, String, Int32)
      • CreateMediaWithIdentity(String, Int32, String, Int32)
      • Delete(IMedia, Int32)
      • DeleteMediaFile(String)
      • DeleteMediaOfType(Int32, Int32)
      • DeleteMediaOfTypes(IEnumerable<Int32>, Int32)
      • DeleteVersion(Int32, Int32, Boolean, Int32)
      • DeleteVersions(Int32, DateTime, Int32)
      • EmptyRecycleBin(Int32)
      • GetAncestors(IMedia)
      • GetAncestors(Int32)
      • GetById(Guid)
      • GetById(Int32)
      • GetByIds(IEnumerable<Guid>)
      • GetByIds(IEnumerable<Int32>)
      • GetByLevel(Int32)
      • GetMediaByPath(String)
      • GetMediaFileContentStream(String)
      • GetMediaFileSize(String)
      • GetPagedChildren(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)
      • GetPagedDescendants(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)
      • GetPagedMediaInRecycleBin(Int64, Int32, out Int64, IQuery<IMedia>, Ordering)
      • GetPagedOfType(Int32, Int64, Int32, out Int64, IQuery<IMedia>, Ordering)
      • GetPagedOfTypes(Int32[], Int64, Int32, out Int64, IQuery<IMedia>, Ordering)
      • GetParent(IMedia)
      • GetParent(Int32)
      • GetRootMedia()
      • GetVersion(Int32)
      • GetVersions(Int32)
      • HasChildren(Int32)
      • Move(IMedia, Int32, Int32)
      • MoveToRecycleBin(IMedia, Int32)
      • RecycleBinSmells()
      • Save(IMedia, Int32)
      • Save(IEnumerable<IMedia>, Int32)
      • SetMediaFileContent(String, Stream)
      • Sort(IEnumerable<IMedia>, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX