Class Reflection
Assembly: DotNetNuke.dll
Syntax
Constructors
Reflection()
Declaration
Methods
CreateInstance(Type)
Declaration
public static object CreateInstance(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
CreateInstance(Type, object[])
Declaration
public static object CreateInstance(Type type, object[] args)
Parameters
Returns
CreateObject(IServiceProvider, string)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType)
Parameters
Returns
CreateObject(IServiceProvider, string, bool)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, bool useCache)
Parameters
Returns
CreateObject(IServiceProvider, string, string)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string typeName, string cacheKey)
Parameters
Returns
CreateObject(IServiceProvider, string, string, bool)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string typeName, string cacheKey, bool useCache)
Parameters
Returns
CreateObject(IServiceProvider, string, string, string)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectNamespace, string objectAssemblyName)
Parameters
Returns
CreateObject(IServiceProvider, string, string, string, bool)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectNamespace, string objectAssemblyName, bool useCache)
Parameters
Returns
CreateObject(IServiceProvider, string, string, string, string)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName)
Parameters
Returns
CreateObject(IServiceProvider, string, string, string, string, bool)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName, bool useCache)
Parameters
Returns
CreateObject(IServiceProvider, string, string, string, string, bool, bool)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName, bool useCache, bool fixAssemblyName)
Parameters
Returns
CreateObject(IServiceProvider, Type)
Declaration
public static object CreateObject(IServiceProvider serviceProvider, Type type)
Parameters
Returns
CreateObject(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType)
Parameters
Type |
Name |
Description |
string |
objectProviderType |
|
Returns
CreateObject(string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, bool useCache)
Parameters
Type |
Name |
Description |
string |
objectProviderType |
|
bool |
useCache |
|
Returns
CreateObject(string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string typeName, string cacheKey)
Parameters
Returns
CreateObject(string, string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string typeName, string cacheKey, bool useCache)
Parameters
Returns
CreateObject(string, string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, string objectNamespace, string objectAssemblyName)
Parameters
Type |
Name |
Description |
string |
objectProviderType |
|
string |
objectNamespace |
|
string |
objectAssemblyName |
|
Returns
CreateObject(string, string, string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, string objectNamespace, string objectAssemblyName, bool useCache)
Parameters
Type |
Name |
Description |
string |
objectProviderType |
|
string |
objectNamespace |
|
string |
objectAssemblyName |
|
bool |
useCache |
|
Returns
CreateObject(string, string, string, string)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName)
Parameters
Type |
Name |
Description |
string |
objectProviderType |
|
string |
objectProviderName |
|
string |
objectNamespace |
|
string |
objectAssemblyName |
|
Returns
CreateObject(string, string, string, string, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName, bool useCache)
Parameters
Returns
CreateObject(string, string, string, string, bool, bool)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName, bool useCache, bool fixAssemblyName)
Parameters
Returns
CreateObject(Type)
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static object CreateObject(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
CreateObject<T>()
Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled for removal in v11.0.0.")]
public static T CreateObject<T>()
Returns
Type Parameters
CreateObject<T>(IServiceProvider)
Declaration
public static T CreateObject<T>(IServiceProvider serviceProvider)
Parameters
Returns
Type Parameters
CreateType(string)
Declaration
public static Type CreateType(string typeName)
Parameters
Type |
Name |
Description |
string |
typeName |
|
Returns
CreateType(string, bool)
Declaration
public static Type CreateType(string typeName, bool ignoreErrors)
Parameters
Type |
Name |
Description |
string |
typeName |
|
bool |
ignoreErrors |
|
Returns
CreateType(string, string, bool)
Declaration
public static Type CreateType(string typeName, string cacheKey, bool useCache)
Parameters
Returns
CreateType(string, string, bool, bool)
Declaration
public static Type CreateType(string typeName, string cacheKey, bool useCache, bool ignoreErrors)
Parameters
Returns
GetProperty(Type, string, object)
Declaration
public static object GetProperty(Type type, string propertyName, object target)
Parameters
Returns
InvokeMethod(Type, string, object, object[])
Declaration
public static void InvokeMethod(Type type, string propertyName, object target, object[] args)
Parameters
SetProperty(Type, string, object, object[])
Declaration
public static void SetProperty(Type type, string propertyName, object target, object[] args)
Parameters
Extension Methods