Class User
Inheritance
System.Object
User
Assembly: MediaBrowser.Controller.dll
public sealed class User : BaseItem, IHasProviderIds, IHasLookupInfo<ItemLookupInfo>
Properties
Declaration
[IgnoreDataMember]
public UserConfiguration Configuration { get; set; }
Property Value
Gets the path to the user's configuration directory
Declaration
[IgnoreDataMember]
public string ConfigurationDirectoryPath { get; }
Property Value
Type |
Description |
System.String |
The configuration directory path.
|
Declaration
public string ConnectAccessKey { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public UserLinkType? ConnectLinkType { get; set; }
Property Value
Declaration
public string ConnectUserId { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string ConnectUserName { get; set; }
Property Value
Type |
Description |
System.String |
|
Returns the folder containing the item.
If the item is a folder, it returns the folder itself
Declaration
[IgnoreDataMember]
public override string ContainingFolderPath { get; }
Property Value
Type |
Description |
System.String |
The containing folder path.
|
Overrides
Declaration
public string EasyPassword { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
[IgnoreDataMember]
public override bool EnableInternalIdsExternally { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override ItemImageInfo[] ImageInfos { get; set; }
Property Value
Overrides
Declaration
[IgnoreDataMember]
public bool IsLockedOut { get; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets the last activity date.
Declaration
public DateTimeOffset? LastActivityDate { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTimeOffset> |
The last activity date.
|
Gets or sets the last login date.
Declaration
public DateTimeOffset? LastLoginDate { get; set; }
Property Value
Type |
Description |
System.Nullable<System.DateTimeOffset> |
The last login date.
|
Declaration
public override string Name { get; set; }
Property Value
Type |
Description |
System.String |
The name.
|
Overrides
Gets or sets the password.
Declaration
public string Password { get; set; }
Property Value
Type |
Description |
System.String |
The password.
|
Declaration
[IgnoreDataMember]
public override string Path { get; set; }
Property Value
Type |
Description |
System.String |
The path.
|
Overrides
Declaration
[IgnoreDataMember]
public UserPolicy Policy { get; set; }
Property Value
Declaration
public string Salt { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
[IgnoreDataMember]
public override bool SupportsPeople { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
From now on all user paths will be Id-based.
This is for backwards compatibility.
Declaration
public bool UsesIdForConfigurationPath { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
public void AssertNotDisabled()
Declaration
public void AssertNotLockedOut()
Declaration
public void AssertRemoteAccessAllowed()
Declaration
public override double GetDefaultPrimaryImageAspectRatio()
Returns
Type |
Description |
System.Double |
|
Overrides
Declaration
public object GetTypedSetting(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Object |
|
Declaration
public bool IsGrantedAccessToFeature(string featureId)
Parameters
Type |
Name |
Description |
System.String |
featureId |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool IsParentalScheduleAllowed()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool IsParentalScheduleAllowed(DateTimeOffset date)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
date |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public Task Rename(string newName)
Parameters
Type |
Name |
Description |
System.String |
newName |
The new name.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
|
Declaration
public override void UpdateToRepository(ItemUpdateType updateReason, BaseItem parent, MetadataRefreshOptions metadataRefreshOptions)
Parameters
Overrides
Declaration
public override void UpdateToRepository(ItemUpdateType updateReason, MetadataRefreshOptions metadataRefreshOptions)
Parameters
Overrides
Declaration
public void UpdateTypedSetting(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
Implements
Extension Methods