Show / Hide Table of Contents

Class Reflection

Inheritance
object
Reflection
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Framework
Assembly: DotNetNuke.dll
Syntax
public class Reflection

Constructors

Reflection()

Declaration
public Reflection()

Methods

CreateInstance(Type)

Declaration
public static object CreateInstance(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
object

CreateInstance(Type, object[])

Declaration
public static object CreateInstance(Type type, object[] args)
Parameters
Type Name Description
Type type
object[] args
Returns
Type Description
object

CreateObject(IServiceProvider, string)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType)
Parameters
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
Returns
Type Description
object

CreateObject(IServiceProvider, string, bool)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, bool useCache)
Parameters
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
bool useCache
Returns
Type Description
object

CreateObject(IServiceProvider, string, string)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string typeName, string cacheKey)
Parameters
Type Name Description
IServiceProvider serviceProvider
string typeName
string cacheKey
Returns
Type Description
object

CreateObject(IServiceProvider, string, string, bool)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string typeName, string cacheKey, bool useCache)
Parameters
Type Name Description
IServiceProvider serviceProvider
string typeName
string cacheKey
bool useCache
Returns
Type Description
object

CreateObject(IServiceProvider, string, string, string)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectNamespace, string objectAssemblyName)
Parameters
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
string objectNamespace
string objectAssemblyName
Returns
Type Description
object

CreateObject(IServiceProvider, string, string, string, bool)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectNamespace, string objectAssemblyName, bool useCache)
Parameters
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
string objectNamespace
string objectAssemblyName
bool useCache
Returns
Type Description
object

CreateObject(IServiceProvider, string, string, string, string)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, string objectProviderType, string objectProviderName, string objectNamespace, string objectAssemblyName)
Parameters
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
string objectProviderName
string objectNamespace
string objectAssemblyName
Returns
Type Description
object

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
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
string objectProviderName
string objectNamespace
string objectAssemblyName
bool useCache
Returns
Type Description
object

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
Type Name Description
IServiceProvider serviceProvider
string objectProviderType
string objectProviderName
string objectNamespace
string objectAssemblyName
bool useCache
bool fixAssemblyName
Returns
Type Description
object

CreateObject(IServiceProvider, Type)

Declaration
public static object CreateObject(IServiceProvider serviceProvider, Type type)
Parameters
Type Name Description
IServiceProvider serviceProvider
Type type
Returns
Type Description
object

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
Type Description
object

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
Type Description
object

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
Type Name Description
string typeName
string cacheKey
Returns
Type Description
object

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
Type Name Description
string typeName
string cacheKey
bool useCache
Returns
Type Description
object

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
Type Description
object

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
Type Description
object

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
Type Description
object

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
Type Name Description
string objectProviderType
string objectProviderName
string objectNamespace
string objectAssemblyName
bool useCache
Returns
Type Description
object

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
Type Name Description
string objectProviderType
string objectProviderName
string objectNamespace
string objectAssemblyName
bool useCache
bool fixAssemblyName
Returns
Type Description
object

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
Type Description
object

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 Description
T
Type Parameters
Name Description
T

CreateObject<T>(IServiceProvider)

Declaration
public static T CreateObject<T>(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider
Returns
Type Description
T
Type Parameters
Name Description
T

CreateType(string)

Declaration
public static Type CreateType(string typeName)
Parameters
Type Name Description
string typeName
Returns
Type Description
Type

CreateType(string, bool)

Declaration
public static Type CreateType(string typeName, bool ignoreErrors)
Parameters
Type Name Description
string typeName
bool ignoreErrors
Returns
Type Description
Type

CreateType(string, string, bool)

Declaration
public static Type CreateType(string typeName, string cacheKey, bool useCache)
Parameters
Type Name Description
string typeName
string cacheKey
bool useCache
Returns
Type Description
Type

CreateType(string, string, bool, bool)

Declaration
public static Type CreateType(string typeName, string cacheKey, bool useCache, bool ignoreErrors)
Parameters
Type Name Description
string typeName
string cacheKey
bool useCache
bool ignoreErrors
Returns
Type Description
Type

GetProperty(Type, string, object)

Declaration
public static object GetProperty(Type type, string propertyName, object target)
Parameters
Type Name Description
Type type
string propertyName
object target
Returns
Type Description
object

InvokeMethod(Type, string, object, object[])

Declaration
public static void InvokeMethod(Type type, string propertyName, object target, object[] args)
Parameters
Type Name Description
Type type
string propertyName
object target
object[] args

SetProperty(Type, string, object, object[])

Declaration
public static void SetProperty(Type type, string propertyName, object target, object[] args)
Parameters
Type Name Description
Type type
string propertyName
object target
object[] args

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS