CachedDataItem.DataType Property (2003 System)
Gets or sets the assembly-qualified name of the type of the cached data object.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
Syntax
'Declaration
Public Property DataType As String
'Usage
Dim instance As CachedDataItem
Dim value As String
value = instance.DataType
instance.DataType = value
public string DataType { get; set; }
Property Value
Type: System.String
The assembly-qualified name of the type of the cached data object.
Remarks
The DataType property returns an assembly-qualified name of the cached data type that is useful for creating a new instance of a custom type that is in the data cache. For example, you can get the Type of a custom data type by passing the assembly-qualified type name to the GetType method. You can then create an instance of the custom type by passing this Type as a parameter to the Activator.CreateInstance method.
For details on the format of the assembly-qualified type string returned by the DataType property, see the Type.AssemblyQualifiedName property.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.