public class IHostEnvironmentImplementation extends NetObject implements IHostEnvironment
.NET documentation at https://learn.microsoft.com/dotnet/api/Microsoft.Extensions.Hosting.IHostEnvironment
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.Extensions.Hosting.Abstractions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.Extensions.Hosting.Abstractions
|
static java.lang.String |
className
Qualified class name: Microsoft.Extensions.Hosting.IHostEnvironment
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
IHostEnvironmentImplementation(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationName()
Gets the value of the .NET property ApplicationName.
|
IFileProvider |
getContentRootFileProvider()
Gets the value of the .NET property ContentRootFileProvider.
|
java.lang.String |
getContentRootPath()
Gets the value of the .NET property ContentRootPath.
|
java.lang.String |
getEnvironmentName()
Gets the value of the .NET property EnvironmentName.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
setApplicationName(java.lang.String ApplicationName)
Sets the value of the .NET property ApplicationName.
|
void |
setContentRootFileProvider(IFileProvider ContentRootFileProvider)
Sets the value of the .NET property ContentRootFileProvider.
|
void |
setContentRootPath(java.lang.String ContentRootPath)
Sets the value of the .NET property ContentRootPath.
|
void |
setEnvironmentName(java.lang.String EnvironmentName)
Sets the value of the .NET property EnvironmentName.
|
static IHostEnvironment |
ToIHostEnvironment(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into IHostEnvironment, a cast assert is made to check if types are compatible. |
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, toString, ToStringpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public IHostEnvironmentImplementation(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic java.lang.String getApplicationName()
throws java.lang.Throwable
getApplicationName in interface IHostEnvironmentjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic IFileProvider getContentRootFileProvider() throws java.lang.Throwable
getContentRootFileProvider in interface IHostEnvironmentjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getContentRootPath()
throws java.lang.Throwable
getContentRootPath in interface IHostEnvironmentjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getEnvironmentName()
throws java.lang.Throwable
getEnvironmentName in interface IHostEnvironmentjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IHostEnvironmentgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IHostEnvironmentgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IHostEnvironmentgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IHostEnvironmentgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IHostEnvironmentgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void setApplicationName(java.lang.String ApplicationName)
throws java.lang.Throwable
setApplicationName in interface IHostEnvironmentApplicationName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setContentRootFileProvider(IFileProvider ContentRootFileProvider) throws java.lang.Throwable
setContentRootFileProvider in interface IHostEnvironmentContentRootFileProvider - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setContentRootPath(java.lang.String ContentRootPath)
throws java.lang.Throwable
setContentRootPath in interface IHostEnvironmentContentRootPath - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setEnvironmentName(java.lang.String EnvironmentName)
throws java.lang.Throwable
setEnvironmentName in interface IHostEnvironmentEnvironmentName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static IHostEnvironment ToIHostEnvironment(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into IHostEnvironment, a cast assert is made to check if types are compatible.ToIHostEnvironment in interface IHostEnvironmentfrom - IJCOBridgeReflected instance to be castedIHostEnvironment instancejava.lang.Throwable - in case of error during cast operation