Compartilhar via


VsLocalUserDataClass Class

Allows a caller to use a GUID to set or get user data (properties).

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsLocalUserDataClass

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
<GuidAttribute("5130C7AB-85BB-11D3-B363-00C04F611E41")> _
<ClassInterfaceAttribute()> _
Public Class VsLocalUserDataClass _
    Implements IVsUserData, VsLocalUserData
[GuidAttribute("5130C7AB-85BB-11D3-B363-00C04F611E41")]
[ClassInterfaceAttribute()]
public class VsLocalUserDataClass : IVsUserData, 
    VsLocalUserData
[GuidAttribute(L"5130C7AB-85BB-11D3-B363-00C04F611E41")]
[ClassInterfaceAttribute()]
public ref class VsLocalUserDataClass : IVsUserData, 
    VsLocalUserData
[<GuidAttribute("5130C7AB-85BB-11D3-B363-00C04F611E41")>]
[<ClassInterfaceAttribute()>]
type VsLocalUserDataClass =  
    class 
        interface IVsUserData 
        interface VsLocalUserData 
    end
public class VsLocalUserDataClass implements IVsUserData, VsLocalUserData

The VsLocalUserDataClass type exposes the following members.

Constructors

  Name Description
Public method VsLocalUserDataClass Creates a new instance of the class.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetData Returns user data from a buffer.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetData Set user data to a buffer.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace