Syntax

C#
[SerializableAttribute]
public sealed class Properties<TPropKey, TPropValue>
Visual Basic (Declaration)
<SerializableAttribute> _
Public NotInheritable Class Properties(Of TPropKey, TPropValue)
Visual C++
[SerializableAttribute]
generic<typename TPropKey, typename TPropValue>
public ref class Properties sealed

Type Parameters

TPropKey
TPropValue

The type exposes the following members.

Public Constructors

  NameDescription
Public methodProperties<(Of <TPropKey, TPropValue>)>Properties<(Of <TPropKey, TPropValue>)>New
Default constructor: returns an empty collection.

Public Methods

  NameDescription
Public methodAddAll
Public methodStatic memberCreate<(Of <TPropKey, TPropValue>)>
Factory method to create an empty collection of properties.
Public methodStatic memberCreateFromVoidPtr<(Of <TPropKey, TPropValue>)>
Internal factory function to wrap a native object pointer inside this managed class with null pointer check.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFind
Return the value for the given key, or NULL if not found.
Public methodForEach
Public methodFromData
Deserializes this Properties object.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetObjectData
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert
Add or update the string value for key.
Public methodLoad
Reads property values from a file, overriding what is currently in the properties object.
Public methodRemove
Remove the key from the collection.
Public methodToData
Serializes this Properties object.
Public methodToString
Returns a string representation of the current Properties object.
(Overrides Object..::ToString()().)

Protected Methods

  NameDescription
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyClassId
Returns the classId of this class for serialization.
Public propertyNativeIntPtr
Get the underlying native unmanaged pointer.
Public propertyObjectSize
return the size of this object in bytes
Public propertySize
Return the number of entries in the collection.

See Also