C# Powershell:GetType()打印所有类型信息,但缺少很多?
我尝试使用GetType()打印所有类型信息,但似乎缺少很多信息? 我在PS4.0中有这样的输入(见下文) 我尝试使用“GetType().GetMethods()”列出所有方法。但是我没有看到C# Powershell:GetType()打印所有类型信息,但缺少很多?,c#,powershell,gettype,C#,Powershell,Gettype,我尝试使用GetType()打印所有类型信息,但似乎缺少很多信息? 我在PS4.0中有这样的输入(见下文) 我尝试使用“GetType().GetMethods()”列出所有方法。但是我没有看到 "GetMethods" 在结果列表中。 我还使用了“GetProperties()”来列出所有属性,但似乎还有更多类似的属性 IsCOMObject 未在结果中列出。如果我使用visualstudio+C#编程,我可以看到更多列出的属性。 为什么powershell会错过它们 请参见下面我的输出
"GetMethods"
在结果列表中。
我还使用了“GetProperties()”来列出所有属性,但似乎还有更多类似的属性
IsCOMObject
未在结果中列出。如果我使用visualstudio+C#编程,我可以看到更多列出的属性。
为什么powershell会错过它们
请参见下面我的输出:
PS C:\Users\engineer> $PSVersionTable
Name Value
---- -----
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion https://urldefense.proofpoint.com/v2/url?u=http-3A__1.1.0.1&d=BQIGaQ&c=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw&r=mCXkWZTsMJTTBmlJTS1MIA&m=Ygifer7R65h35BWXXpiU4do9wt2Uao4rSLEgO9vuPHk&s=vwVGdMLhksoC-RbOJWgJ4jNhk1F5c7TrApW_pekpb9M&e=
CLRVersion 4.0.30319.18444
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
PS C:\Users\engineer> $a=${}
PS C:\Users\engineer> $a.GetType()
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Hashtable System.Object
PS C:\Users\engineer> $a.GetType().GetMethods().Name|Sort
Add
Clear
Clone
Contains
ContainsKey
ContainsValue
CopyTo
Equals
get_Count
get_IsFixedSize
get_IsReadOnly
get_IsSynchronized
get_Item
get_Keys
get_SyncRoot
get_Values
GetEnumerator
GetHashCode
GetObjectData
GetType
OnDeserialization
Remove
set_Item
Synchronized
ToString
PS C:\Users\engineer> $a.GetType().GetProperties().Name|Sort
Count
IsFixedSize
IsReadOnly
IsSynchronized
Item
Keys
SyncRoot
Values
PS C:\Users\engineer> $a.GetType().IsCOMObject
False
PS C:\Users\engineer>
$a是一个哈希表,您的表达式将获取哈希表类的所有方法。GetMethods未出现在列表中,因为它不是类HashTable的方法,而是类类型的方法。IsCOMObject未出现在列表中,因为它不是类哈希表上的属性;它是类类型的属性 如果您想查看可以对类型对象执行的所有操作,请执行(C#)之类的操作:
你弄错了这里的类型。
$a.getType()
生成的System.RuntimeType
确实具有IsComObject
属性,而$a.getType().getProperties()
返回System.Collections.Hashtable
的属性。请看区别:
PS K:\> $a.gettype()|gm
TypeName: System.RuntimeType
Name MemberType Definition
---- ---------- ----------
AsType Method type AsType()
Clone Method System.Object Clone(), System.Object ICloneable.Clone()
Equals Method bool Equals(System.Object obj), bool Equals(type o), bool _MemberInfo.Equa...
FindInterfaces Method type[] FindInterfaces(System.Reflection.TypeFilter filter, System.Object f...
FindMembers Method System.Reflection.MemberInfo[] FindMembers(System.Reflection.MemberTypes m...
GetArrayRank Method int GetArrayRank(), int _Type.GetArrayRank()
GetConstructor Method System.Reflection.ConstructorInfo GetConstructor(System.Reflection.Binding...
GetConstructors Method System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.Bind...
GetCustomAttributes Method System.Object[] GetCustomAttributes(bool inherit), System.Object[] GetCust...
GetCustomAttributesData Method System.Collections.Generic.IList[System.Reflection.CustomAttributeData] Ge...
GetDeclaredEvent Method System.Reflection.EventInfo GetDeclaredEvent(string name)
GetDeclaredField Method System.Reflection.FieldInfo GetDeclaredField(string name)
GetDeclaredMethod Method System.Reflection.MethodInfo GetDeclaredMethod(string name)
GetDeclaredMethods Method System.Collections.Generic.IEnumerable[System.Reflection.MethodInfo] GetDe...
GetDeclaredNestedType Method System.Reflection.TypeInfo GetDeclaredNestedType(string name)
GetDeclaredProperty Method System.Reflection.PropertyInfo GetDeclaredProperty(string name)
GetDefaultMembers Method System.Reflection.MemberInfo[] GetDefaultMembers(), System.Reflection.Memb...
GetElementType Method type GetElementType(), type _Type.GetElementType()
GetEnumName Method string GetEnumName(System.Object value)
GetEnumNames Method string[] GetEnumNames()
GetEnumUnderlyingType Method type GetEnumUnderlyingType()
GetEnumValues Method array GetEnumValues()
GetEvent Method System.Reflection.EventInfo GetEvent(string name, System.Reflection.Bindin...
GetEvents Method System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bin...
GetField Method System.Reflection.FieldInfo GetField(string name, System.Reflection.Bindin...
GetFields Method System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bin...
GetGenericArguments Method type[] GetGenericArguments()
GetGenericParameterConstraints Method type[] GetGenericParameterConstraints()
GetGenericTypeDefinition Method type GetGenericTypeDefinition()
GetHashCode Method int GetHashCode(), int _MemberInfo.GetHashCode(), int _Type.GetHashCode()
GetIDsOfNames Method void _MemberInfo.GetIDsOfNames([ref] guid riid, System.IntPtr rgszNames, u...
GetInterface Method type GetInterface(string fullname, bool ignoreCase), type GetInterface(str...
GetInterfaceMap Method System.Reflection.InterfaceMapping GetInterfaceMap(type ifaceType), System...
GetInterfaces Method type[] GetInterfaces(), type[] _Type.GetInterfaces()
GetMember Method System.Reflection.MemberInfo[] GetMember(string name, System.Reflection.Me...
GetMembers Method System.Reflection.MemberInfo[] GetMembers(System.Reflection.BindingFlags b...
GetMethod Method System.Reflection.MethodInfo GetMethod(string name, System.Reflection.Bind...
GetMethods Method System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags b...
GetNestedType Method type GetNestedType(string fullname, System.Reflection.BindingFlags binding...
GetNestedTypes Method type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr), type[] ...
GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, Sy...
GetProperties Method System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFl...
GetProperty Method System.Reflection.PropertyInfo GetProperty(string name, System.Reflection....
GetType Method type GetType(), type _MemberInfo.GetType(), type _Type.GetType()
GetTypeInfo Method void _MemberInfo.GetTypeInfo(uint32 iTInfo, uint32 lcid, System.IntPtr ppT...
GetTypeInfoCount Method void _MemberInfo.GetTypeInfoCount([ref] uint32 pcTInfo), void _Type.GetTyp...
Invoke Method void _MemberInfo.Invoke(uint32 dispIdMember, [ref] guid riid, uint32 lcid,...
InvokeMember Method System.Object InvokeMember(string name, System.Reflection.BindingFlags bin...
IsAssignableFrom Method bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo), bool IsAssigna...
IsDefined Method bool IsDefined(type attributeType, bool inherit), bool ICustomAttributePro...
IsEnumDefined Method bool IsEnumDefined(System.Object value)
IsEquivalentTo Method bool IsEquivalentTo(type other)
IsInstanceOfType Method bool IsInstanceOfType(System.Object o), bool _Type.IsInstanceOfType(System...
IsSubclassOf Method bool IsSubclassOf(type type), bool _Type.IsSubclassOf(type c)
MakeArrayType Method type MakeArrayType(), type MakeArrayType(int rank)
MakeByRefType Method type MakeByRefType()
MakeGenericType Method type MakeGenericType(Params type[] instantiation)
MakePointerType Method type MakePointerType()
ToString Method string ToString(), string _MemberInfo.ToString(), string _Type.ToString()
Assembly Property System.Reflection.Assembly Assembly {get;}
AssemblyQualifiedName Property string AssemblyQualifiedName {get;}
Attributes Property System.Reflection.TypeAttributes Attributes {get;}
BaseType Property type BaseType {get;}
ContainsGenericParameters Property bool ContainsGenericParameters {get;}
CustomAttributes Property System.Collections.Generic.IEnumerable[System.Reflection.CustomAttributeDa...
DeclaredConstructors Property System.Collections.Generic.IEnumerable[System.Reflection.ConstructorInfo] ...
DeclaredEvents Property System.Collections.Generic.IEnumerable[System.Reflection.EventInfo] Declar...
DeclaredFields Property System.Collections.Generic.IEnumerable[System.Reflection.FieldInfo] Declar...
DeclaredMembers Property System.Collections.Generic.IEnumerable[System.Reflection.MemberInfo] Decla...
DeclaredMethods Property System.Collections.Generic.IEnumerable[System.Reflection.MethodInfo] Decla...
DeclaredNestedTypes Property System.Collections.Generic.IEnumerable[System.Reflection.TypeInfo] Declare...
DeclaredProperties Property System.Collections.Generic.IEnumerable[System.Reflection.PropertyInfo] Dec...
DeclaringMethod Property System.Reflection.MethodBase DeclaringMethod {get;}
DeclaringType Property type DeclaringType {get;}
FullName Property string FullName {get;}
GenericParameterAttributes Property System.Reflection.GenericParameterAttributes GenericParameterAttributes {g...
GenericParameterPosition Property int GenericParameterPosition {get;}
GenericTypeArguments Property type[] GenericTypeArguments {get;}
GenericTypeParameters Property type[] GenericTypeParameters {get;}
GUID Property guid GUID {get;}
HasElementType Property bool HasElementType {get;}
ImplementedInterfaces Property System.Collections.Generic.IEnumerable[type] ImplementedInterfaces {get;}
IsAbstract Property bool IsAbstract {get;}
IsAnsiClass Property bool IsAnsiClass {get;}
IsArray Property bool IsArray {get;}
IsAutoClass Property bool IsAutoClass {get;}
IsAutoLayout Property bool IsAutoLayout {get;}
IsByRef Property bool IsByRef {get;}
IsClass Property bool IsClass {get;}
IsCOMObject Property bool IsCOMObject {get;}
IsConstructedGenericType Property bool IsConstructedGenericType {get;}
IsContextful Property bool IsContextful {get;}
IsEnum Property bool IsEnum {get;}
IsExplicitLayout Property bool IsExplicitLayout {get;}
IsGenericParameter Property bool IsGenericParameter {get;}
IsGenericType Property bool IsGenericType {get;}
IsGenericTypeDefinition Property bool IsGenericTypeDefinition {get;}
IsImport Property bool IsImport {get;}
IsInterface Property bool IsInterface {get;}
IsLayoutSequential Property bool IsLayoutSequential {get;}
IsMarshalByRef Property bool IsMarshalByRef {get;}
IsNested Property bool IsNested {get;}
IsNestedAssembly Property bool IsNestedAssembly {get;}
IsNestedFamANDAssem Property bool IsNestedFamANDAssem {get;}
IsNestedFamily Property bool IsNestedFamily {get;}
IsNestedFamORAssem Property bool IsNestedFamORAssem {get;}
IsNestedPrivate Property bool IsNestedPrivate {get;}
IsNestedPublic Property bool IsNestedPublic {get;}
IsNotPublic Property bool IsNotPublic {get;}
IsPointer Property bool IsPointer {get;}
IsPrimitive Property bool IsPrimitive {get;}
IsPublic Property bool IsPublic {get;}
IsSealed Property bool IsSealed {get;}
IsSecurityCritical Property bool IsSecurityCritical {get;}
IsSecuritySafeCritical Property bool IsSecuritySafeCritical {get;}
IsSecurityTransparent Property bool IsSecurityTransparent {get;}
IsSerializable Property bool IsSerializable {get;}
IsSpecialName Property bool IsSpecialName {get;}
IsUnicodeClass Property bool IsUnicodeClass {get;}
IsValueType Property bool IsValueType {get;}
IsVisible Property bool IsVisible {get;}
MemberType Property System.Reflection.MemberTypes MemberType {get;}
MetadataToken Property int MetadataToken {get;}
Module Property System.Reflection.Module Module {get;}
Name Property string Name {get;}
Namespace Property string Namespace {get;}
ReflectedType Property type ReflectedType {get;}
StructLayoutAttribute Property System.Runtime.InteropServices.StructLayoutAttribute StructLayoutAttribute...
TypeHandle Property System.RuntimeTypeHandle TypeHandle {get;}
TypeInitializer Property System.Reflection.ConstructorInfo TypeInitializer {get;}
UnderlyingSystemType Property type UnderlyingSystemType {get;}
PS K:\> $a.gettype().isfixedsize
PS K:\> $a.isfixedsize
False
PS K:\> get-member -InputObject $a
TypeName: System.Collections.Hashtable
Name MemberType Definition
---- ---------- ----------
Add Method void Add(System.Object key, System.Object value), void IDictionary.Add(Syste...
Clear Method void Clear(), void IDictionary.Clear()
Clone Method System.Object Clone(), System.Object ICloneable.Clone()
Contains Method bool Contains(System.Object key), bool IDictionary.Contains(System.Object key)
ContainsKey Method bool ContainsKey(System.Object key)
ContainsValue Method bool ContainsValue(System.Object value)
CopyTo Method void CopyTo(array array, int arrayIndex), void ICollection.CopyTo(array arra...
Equals Method bool Equals(System.Object obj)
GetEnumerator Method System.Collections.IDictionaryEnumerator GetEnumerator(), System.Collections...
GetHashCode Method int GetHashCode()
GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, Syst...
GetType Method type GetType()
OnDeserialization Method void OnDeserialization(System.Object sender), void IDeserializationCallback....
Remove Method void Remove(System.Object key), void IDictionary.Remove(System.Object key)
ToString Method string ToString()
Item ParameterizedProperty System.Object Item(System.Object key) {get;set;}
Count Property int Count {get;}
IsFixedSize Property bool IsFixedSize {get;}
IsReadOnly Property bool IsReadOnly {get;}
IsSynchronized Property bool IsSynchronized {get;}
Keys Property System.Collections.ICollection Keys {get;}
SyncRoot Property System.Object SyncRoot {get;}
Values Property System.Collections.ICollection Values {get;}
谢谢,但只要“HashTable”也是一个类型,它是否继承“type”的类型属性,比如“IsCOMObject”?我想哈希表类型也应该包含一个名为“IsCOMObject”的属性,比如typeof(type)。你把一个类型和一个表示该类型的类型对象混淆了。哈希表没有名为GetMethods的方法。表示哈希表类型的Type对象可以。虽然这肯定会告诉您.NET类型的声明元数据,但Get-Member cmdlet通常用于检查属性和方法,因为PowerShell的扩展类型系统可以动态附加其他属性和方法。
PS K:\> $a.gettype()|gm
TypeName: System.RuntimeType
Name MemberType Definition
---- ---------- ----------
AsType Method type AsType()
Clone Method System.Object Clone(), System.Object ICloneable.Clone()
Equals Method bool Equals(System.Object obj), bool Equals(type o), bool _MemberInfo.Equa...
FindInterfaces Method type[] FindInterfaces(System.Reflection.TypeFilter filter, System.Object f...
FindMembers Method System.Reflection.MemberInfo[] FindMembers(System.Reflection.MemberTypes m...
GetArrayRank Method int GetArrayRank(), int _Type.GetArrayRank()
GetConstructor Method System.Reflection.ConstructorInfo GetConstructor(System.Reflection.Binding...
GetConstructors Method System.Reflection.ConstructorInfo[] GetConstructors(System.Reflection.Bind...
GetCustomAttributes Method System.Object[] GetCustomAttributes(bool inherit), System.Object[] GetCust...
GetCustomAttributesData Method System.Collections.Generic.IList[System.Reflection.CustomAttributeData] Ge...
GetDeclaredEvent Method System.Reflection.EventInfo GetDeclaredEvent(string name)
GetDeclaredField Method System.Reflection.FieldInfo GetDeclaredField(string name)
GetDeclaredMethod Method System.Reflection.MethodInfo GetDeclaredMethod(string name)
GetDeclaredMethods Method System.Collections.Generic.IEnumerable[System.Reflection.MethodInfo] GetDe...
GetDeclaredNestedType Method System.Reflection.TypeInfo GetDeclaredNestedType(string name)
GetDeclaredProperty Method System.Reflection.PropertyInfo GetDeclaredProperty(string name)
GetDefaultMembers Method System.Reflection.MemberInfo[] GetDefaultMembers(), System.Reflection.Memb...
GetElementType Method type GetElementType(), type _Type.GetElementType()
GetEnumName Method string GetEnumName(System.Object value)
GetEnumNames Method string[] GetEnumNames()
GetEnumUnderlyingType Method type GetEnumUnderlyingType()
GetEnumValues Method array GetEnumValues()
GetEvent Method System.Reflection.EventInfo GetEvent(string name, System.Reflection.Bindin...
GetEvents Method System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bin...
GetField Method System.Reflection.FieldInfo GetField(string name, System.Reflection.Bindin...
GetFields Method System.Reflection.FieldInfo[] GetFields(System.Reflection.BindingFlags bin...
GetGenericArguments Method type[] GetGenericArguments()
GetGenericParameterConstraints Method type[] GetGenericParameterConstraints()
GetGenericTypeDefinition Method type GetGenericTypeDefinition()
GetHashCode Method int GetHashCode(), int _MemberInfo.GetHashCode(), int _Type.GetHashCode()
GetIDsOfNames Method void _MemberInfo.GetIDsOfNames([ref] guid riid, System.IntPtr rgszNames, u...
GetInterface Method type GetInterface(string fullname, bool ignoreCase), type GetInterface(str...
GetInterfaceMap Method System.Reflection.InterfaceMapping GetInterfaceMap(type ifaceType), System...
GetInterfaces Method type[] GetInterfaces(), type[] _Type.GetInterfaces()
GetMember Method System.Reflection.MemberInfo[] GetMember(string name, System.Reflection.Me...
GetMembers Method System.Reflection.MemberInfo[] GetMembers(System.Reflection.BindingFlags b...
GetMethod Method System.Reflection.MethodInfo GetMethod(string name, System.Reflection.Bind...
GetMethods Method System.Reflection.MethodInfo[] GetMethods(System.Reflection.BindingFlags b...
GetNestedType Method type GetNestedType(string fullname, System.Reflection.BindingFlags binding...
GetNestedTypes Method type[] GetNestedTypes(System.Reflection.BindingFlags bindingAttr), type[] ...
GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, Sy...
GetProperties Method System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFl...
GetProperty Method System.Reflection.PropertyInfo GetProperty(string name, System.Reflection....
GetType Method type GetType(), type _MemberInfo.GetType(), type _Type.GetType()
GetTypeInfo Method void _MemberInfo.GetTypeInfo(uint32 iTInfo, uint32 lcid, System.IntPtr ppT...
GetTypeInfoCount Method void _MemberInfo.GetTypeInfoCount([ref] uint32 pcTInfo), void _Type.GetTyp...
Invoke Method void _MemberInfo.Invoke(uint32 dispIdMember, [ref] guid riid, uint32 lcid,...
InvokeMember Method System.Object InvokeMember(string name, System.Reflection.BindingFlags bin...
IsAssignableFrom Method bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo), bool IsAssigna...
IsDefined Method bool IsDefined(type attributeType, bool inherit), bool ICustomAttributePro...
IsEnumDefined Method bool IsEnumDefined(System.Object value)
IsEquivalentTo Method bool IsEquivalentTo(type other)
IsInstanceOfType Method bool IsInstanceOfType(System.Object o), bool _Type.IsInstanceOfType(System...
IsSubclassOf Method bool IsSubclassOf(type type), bool _Type.IsSubclassOf(type c)
MakeArrayType Method type MakeArrayType(), type MakeArrayType(int rank)
MakeByRefType Method type MakeByRefType()
MakeGenericType Method type MakeGenericType(Params type[] instantiation)
MakePointerType Method type MakePointerType()
ToString Method string ToString(), string _MemberInfo.ToString(), string _Type.ToString()
Assembly Property System.Reflection.Assembly Assembly {get;}
AssemblyQualifiedName Property string AssemblyQualifiedName {get;}
Attributes Property System.Reflection.TypeAttributes Attributes {get;}
BaseType Property type BaseType {get;}
ContainsGenericParameters Property bool ContainsGenericParameters {get;}
CustomAttributes Property System.Collections.Generic.IEnumerable[System.Reflection.CustomAttributeDa...
DeclaredConstructors Property System.Collections.Generic.IEnumerable[System.Reflection.ConstructorInfo] ...
DeclaredEvents Property System.Collections.Generic.IEnumerable[System.Reflection.EventInfo] Declar...
DeclaredFields Property System.Collections.Generic.IEnumerable[System.Reflection.FieldInfo] Declar...
DeclaredMembers Property System.Collections.Generic.IEnumerable[System.Reflection.MemberInfo] Decla...
DeclaredMethods Property System.Collections.Generic.IEnumerable[System.Reflection.MethodInfo] Decla...
DeclaredNestedTypes Property System.Collections.Generic.IEnumerable[System.Reflection.TypeInfo] Declare...
DeclaredProperties Property System.Collections.Generic.IEnumerable[System.Reflection.PropertyInfo] Dec...
DeclaringMethod Property System.Reflection.MethodBase DeclaringMethod {get;}
DeclaringType Property type DeclaringType {get;}
FullName Property string FullName {get;}
GenericParameterAttributes Property System.Reflection.GenericParameterAttributes GenericParameterAttributes {g...
GenericParameterPosition Property int GenericParameterPosition {get;}
GenericTypeArguments Property type[] GenericTypeArguments {get;}
GenericTypeParameters Property type[] GenericTypeParameters {get;}
GUID Property guid GUID {get;}
HasElementType Property bool HasElementType {get;}
ImplementedInterfaces Property System.Collections.Generic.IEnumerable[type] ImplementedInterfaces {get;}
IsAbstract Property bool IsAbstract {get;}
IsAnsiClass Property bool IsAnsiClass {get;}
IsArray Property bool IsArray {get;}
IsAutoClass Property bool IsAutoClass {get;}
IsAutoLayout Property bool IsAutoLayout {get;}
IsByRef Property bool IsByRef {get;}
IsClass Property bool IsClass {get;}
IsCOMObject Property bool IsCOMObject {get;}
IsConstructedGenericType Property bool IsConstructedGenericType {get;}
IsContextful Property bool IsContextful {get;}
IsEnum Property bool IsEnum {get;}
IsExplicitLayout Property bool IsExplicitLayout {get;}
IsGenericParameter Property bool IsGenericParameter {get;}
IsGenericType Property bool IsGenericType {get;}
IsGenericTypeDefinition Property bool IsGenericTypeDefinition {get;}
IsImport Property bool IsImport {get;}
IsInterface Property bool IsInterface {get;}
IsLayoutSequential Property bool IsLayoutSequential {get;}
IsMarshalByRef Property bool IsMarshalByRef {get;}
IsNested Property bool IsNested {get;}
IsNestedAssembly Property bool IsNestedAssembly {get;}
IsNestedFamANDAssem Property bool IsNestedFamANDAssem {get;}
IsNestedFamily Property bool IsNestedFamily {get;}
IsNestedFamORAssem Property bool IsNestedFamORAssem {get;}
IsNestedPrivate Property bool IsNestedPrivate {get;}
IsNestedPublic Property bool IsNestedPublic {get;}
IsNotPublic Property bool IsNotPublic {get;}
IsPointer Property bool IsPointer {get;}
IsPrimitive Property bool IsPrimitive {get;}
IsPublic Property bool IsPublic {get;}
IsSealed Property bool IsSealed {get;}
IsSecurityCritical Property bool IsSecurityCritical {get;}
IsSecuritySafeCritical Property bool IsSecuritySafeCritical {get;}
IsSecurityTransparent Property bool IsSecurityTransparent {get;}
IsSerializable Property bool IsSerializable {get;}
IsSpecialName Property bool IsSpecialName {get;}
IsUnicodeClass Property bool IsUnicodeClass {get;}
IsValueType Property bool IsValueType {get;}
IsVisible Property bool IsVisible {get;}
MemberType Property System.Reflection.MemberTypes MemberType {get;}
MetadataToken Property int MetadataToken {get;}
Module Property System.Reflection.Module Module {get;}
Name Property string Name {get;}
Namespace Property string Namespace {get;}
ReflectedType Property type ReflectedType {get;}
StructLayoutAttribute Property System.Runtime.InteropServices.StructLayoutAttribute StructLayoutAttribute...
TypeHandle Property System.RuntimeTypeHandle TypeHandle {get;}
TypeInitializer Property System.Reflection.ConstructorInfo TypeInitializer {get;}
UnderlyingSystemType Property type UnderlyingSystemType {get;}
PS K:\> $a.gettype().isfixedsize
PS K:\> $a.isfixedsize
False
PS K:\> get-member -InputObject $a
TypeName: System.Collections.Hashtable
Name MemberType Definition
---- ---------- ----------
Add Method void Add(System.Object key, System.Object value), void IDictionary.Add(Syste...
Clear Method void Clear(), void IDictionary.Clear()
Clone Method System.Object Clone(), System.Object ICloneable.Clone()
Contains Method bool Contains(System.Object key), bool IDictionary.Contains(System.Object key)
ContainsKey Method bool ContainsKey(System.Object key)
ContainsValue Method bool ContainsValue(System.Object value)
CopyTo Method void CopyTo(array array, int arrayIndex), void ICollection.CopyTo(array arra...
Equals Method bool Equals(System.Object obj)
GetEnumerator Method System.Collections.IDictionaryEnumerator GetEnumerator(), System.Collections...
GetHashCode Method int GetHashCode()
GetObjectData Method void GetObjectData(System.Runtime.Serialization.SerializationInfo info, Syst...
GetType Method type GetType()
OnDeserialization Method void OnDeserialization(System.Object sender), void IDeserializationCallback....
Remove Method void Remove(System.Object key), void IDictionary.Remove(System.Object key)
ToString Method string ToString()
Item ParameterizedProperty System.Object Item(System.Object key) {get;set;}
Count Property int Count {get;}
IsFixedSize Property bool IsFixedSize {get;}
IsReadOnly Property bool IsReadOnly {get;}
IsSynchronized Property bool IsSynchronized {get;}
Keys Property System.Collections.ICollection Keys {get;}
SyncRoot Property System.Object SyncRoot {get;}
Values Property System.Collections.ICollection Values {get;}