Class ProviderIdsExtensions
Class ProviderIdsExtensions
Inheritance
System.Object
ProviderIdsExtensions
Namespace: MediaBrowser.Model.Entities
Assembly: MediaBrowser.Model.dll
Syntax
public static class ProviderIdsExtensions
Methods
GetProviderId(IHasProviderIds, MetadataProviders)
Gets a provider id
Declaration
public static string GetProviderId(this IHasProviderIds instance, MetadataProviders provider)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | The instance. |
MetadataProviders | provider | The provider. |
Returns
Type | Description |
---|---|
System.String | System.String. |
GetProviderId(IHasProviderIds, String)
Gets a provider id
Declaration
public static string GetProviderId(this IHasProviderIds instance, string name)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | The instance. |
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.String | System.String. |
GetProviderIds(IHasProviderIds, String)
Declaration
public static string[] GetProviderIds(this IHasProviderIds instance, string name)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | |
System.String | name |
Returns
Type | Description |
---|---|
System.String[] |
HasProviderId(IHasProviderIds, MetadataProviders)
Determines whether [has provider identifier] [the specified instance].
Declaration
public static bool HasProviderId(this IHasProviderIds instance, MetadataProviders provider)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | The instance. |
MetadataProviders | provider | The provider. |
Returns
Type | Description |
---|---|
System.Boolean |
|
HasProviderId(IHasProviderIds, String)
Declaration
public static bool HasProviderId(this IHasProviderIds instance, string provider)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | |
System.String | provider |
Returns
Type | Description |
---|---|
System.Boolean |
SetProviderId(IHasProviderIds, MetadataProviders, String)
Sets a provider id
Declaration
public static void SetProviderId(this IHasProviderIds instance, MetadataProviders provider, string value)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | The instance. |
MetadataProviders | provider | The provider. |
System.String | value | The value. |
SetProviderId(IHasProviderIds, MetadataProviders, String[])
Declaration
public static void SetProviderId(this IHasProviderIds instance, MetadataProviders provider, string[] value)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | |
MetadataProviders | provider | |
System.String[] | value |
SetProviderId(IHasProviderIds, String, String)
Sets a provider id
Declaration
public static void SetProviderId(this IHasProviderIds instance, string name, string value)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | The instance. |
System.String | name | The name. |
System.String | value | The value. |
SetProviderId(IHasProviderIds, String, String[])
Declaration
public static void SetProviderId(this IHasProviderIds instance, string name, string[] values)
Parameters
Type | Name | Description |
---|---|---|
IHasProviderIds | instance | |
System.String | name | |
System.String[] | values |