ProtoElementBase Class
Represents the prototype for the element.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.ProtoElementBase
Microsoft.VisualStudio.Modeling.ProtoElement
Microsoft.VisualStudio.Modeling.ProtoLink
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
<SerializableAttribute> _
Public MustInherit Class ProtoElementBase _
Implements ISerializable
[SerializableAttribute]
public abstract class ProtoElementBase : ISerializable
[SerializableAttribute]
public ref class ProtoElementBase abstract : ISerializable
[<AbstractClass>]
[<SerializableAttribute>]
type ProtoElementBase =
class
interface ISerializable
end
public abstract class ProtoElementBase implements ISerializable
The ProtoElementBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ProtoElementBase(Guid) | Creates an instance of the ProtoElementBase class for a given domainClassId. This mode is used to determine whether the given DomainClassInfo type can be merged under any given model element. | |
ProtoElementBase(ModelElement) | Creates an instance of the ProtoElementBase class. | |
ProtoElementBase(SerializationInfo, StreamingContext) | Creates an instance of the ProtoElementBase class. |
Top
Properties
Name | Description | |
---|---|---|
DomainClassId | Get the Id of the domain class for this prototype element. | |
ElementId | Get the Id of the prototype element. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetObjectData | Serializes object data into the SerializationInfo object. | |
GetPropertyAssignments | Get the AttributeAssignements for the progenitor element's attributes | |
GetPropertyValue | Gets the value of the specified domain property. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReconstituteObject | Creates an element in the partition with the same attributes as the progenitor element | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
A prototype is a compressed, serializable version of an element. A prototype monitors what properties an element contains so that the prototype can be deserialized into another store. You can use a prototype to create an element in any store.
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.