Class MediaPermissionResource
A resource used for the
Inheritance
Namespace: Umbraco.Cms.Core.Security.Authorization
Assembly: Umbraco.Core.dll
Syntax
public class MediaPermissionResource : IPermissionResource
Properties
View SourceCheckRecycleBin
Gets a value indicating whether to check the recycle bin.
Declaration
public bool CheckRecycleBin { get; }
Property Value
Type | Description |
---|---|
System. |
CheckRoot
Gets a value indicating whether to check the root.
Declaration
public bool CheckRoot { get; }
Property Value
Type | Description |
---|---|
System. |
MediaKeys
Gets the media keys.
Declaration
public IEnumerable<Guid> MediaKeys { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Guid> |
Methods
View SourceRecycleBin()
Creates a Media
Declaration
public static MediaPermissionResource RecycleBin()
Returns
Type | Description |
---|---|
Media |
An instance of Media |
Root()
Creates a Media
Declaration
public static MediaPermissionResource Root()
Returns
Type | Description |
---|---|
Media |
An instance of Media |
WithKeys(Guid)
Creates a Media
Declaration
public static MediaPermissionResource WithKeys(Guid mediaKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | mediaKey | The key of the media. |
Returns
Type | Description |
---|---|
Media |
An instance of Media |
WithKeys(IEnumerable<Guid>)
Creates a Media
Declaration
public static MediaPermissionResource WithKeys(IEnumerable<Guid> mediaKeys)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Guid> | mediaKeys | The keys of the medias. |
Returns
Type | Description |
---|---|
Media |
An instance of Media |
WithKeys(IEnumerable<Nullable<Guid>>)
Creates a Media
Declaration
public static MediaPermissionResource WithKeys(IEnumerable<Guid?> mediaKeys)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System. |
mediaKeys | The keys of the medias or null if root. |
Returns
Type | Description |
---|---|
Media |
An instance of Media |
WithKeys(Nullable<Guid>)
Creates a Media
Declaration
public static MediaPermissionResource WithKeys(Guid? mediaKey)
Parameters
Type | Name | Description |
---|---|---|
System. |
mediaKey | The key of the media or null if root. |
Returns
Type | Description |
---|---|
Media |
An instance of Media |