DirectoryAttribute.GetValues(Type) 方法

定义

该方法 GetValues(Type) 返回指定类型的所有值。

public:
 cli::array <System::Object ^> ^ GetValues(Type ^ valuesType);
public object[] GetValues(Type valuesType);
member this.GetValues : Type -> obj[]
Public Function GetValues (valuesType As Type) As Object()

参数

valuesType
Type

一个 Type 对象,指定要返回的值的类型。

返回

Object[]

包含值的对象的数组 Object

例外

无法将值转换为 valuesType

valuesType 必须是字符串或字节。

适用于