Represents a property attached to an InTrust repository. A property is a way to tag repositories for arbitrary purposes.
Sets the name of the property.
HRESULT PropertyName(
[in] BSTR pVal
);
Name | Type | Meaning |
---|---|---|
pVal |
BSTR |
Name of the property. The name must be unique in the property collection (see IPropertyCollection). |
Returns the value of the property.
HRESULT PropertyValue(
[out, retval] VARIANT *pVal
);
Name | Type | Meaning |
---|---|---|
pVal |
VARIANT* |
Value of the property. |
Sets the value of the property.
HRESULT PropertyValue(
[in] VARIANT pVal
);
Name | Type | Meaning |
---|---|---|
pVal |
VARIANT |
Value of the property. |
Returns the name of the property.
|
|
HRESULT PropertyName(
[out, retval] BSTR *pVal
);
Name | Type | Meaning |
---|---|---|
pVal |
BSTR* |
Name of the property. |
Represents a collection of properties associated with an InTrust repository. Access to the collections is gained through specialized methods of the IInTrustRepository interface (such as CustomAttributes and ForwardingProperties), which filter the available properties by purpose.
Gets a property from the collection by name.
HRESULT Item(
[in] BSTR bstrPropertyName,
[out, retval] IProperty** ppProperty
);
Name | Type | Meaning |
---|---|---|
bstrPropertyName |
BSTR |
Name of the property. This name must exist in the collection. |
ppProperty |
The property. |
Constructs the collection.
HRESULT _NewEnum(
[out, retval] LPUNKNOWN* pVal
);
Name | Type | Meaning |
---|---|---|
pVal |
LPUNKNOWN* |
Collection constructor. |
Sets the specified property if it exists or creates it if it doesn't.
HRESULT Set(
[in] BSTR bstrPropertyName,
[in] VARIANT varPropertyValue
);
Name | Type | Meaning |
---|---|---|
bstrPropertyName |
BSTR |
Name of the property to add. The name must be unique. |
varPropertyValue | BSTR |
The value to set. |
Removes a property from the collection by name.
HRESULT Remove(
[in] BSTR bstrPropertyName
);
Name | Type | Meaning |
---|---|---|
bstrPropertyName |
BSTR |
Name of the property to remove. |
Provides write access to the repository that it is associated with and manages one or more IRepositoryRecordInserterLight interfaces, which do the actual writing. For each IRepositoryRecordInserterLight, it also stores predefined field values that are the same in all records written by that IRepositoryRecordInserterLight.
Incoming records are pushed to the repository at regular intervals. However, you can force an immediate write by calling the Commit method.
Sets the values of the path-specifying fields for records that will be written to the same repository file.
HRESULT BindFields(
[in] tags path,
[out, retval] IRepositoryRecordInserterLight**
);
Name | Type | Meaning |
---|---|---|
path |
The field record values that you specify here are supposed to be the same for all records generated by the IRepositoryRecordInserterLight that will be initialized. | |
|
Record-inserting interface with some record field values predefined. |
Writes the specified records to the repository asynchronously.
HRESULT PutRecords(
[in] SAFEARRAY(struct record) records
);
Name | Type | Meaning |
---|---|---|
records |
SAFEARRAY(struct record) |
Records to put in the repository. |
Writes the specified records to the repository asynchronously. This method is similar to PutRecords, except the type of the input parameter. Using the IBulkRecord interface for input makes it possible to write event records converted by IEventToRecordFormatter. For details, see Event Record Data Structures.
HRESULT PutRecords2(
[in] IBulkRecord* pBulkRecord
);
Name | Type | Meaning |
---|---|---|
records |
IBulkRecord* pBulkRecord |
Records (normally, converted from events) to put in the repository. |
Performs all deferred record writes synchronously.
|
Caution: This operation is resource-intensive and should not be used needlessly. For example, committing after each record is strongly discouraged. InTrust commits records automatically every 60 seconds. Forcing a commit is acceptable in situations like the following:
|
HRESULT Commit();
Generates valid record structures from predefined and significant values and writes them to the repository.
|
Note:IRepositoryRecordInserterLight or IRepositoryRecordInserter: when to use which? Use IRepositoryRecordInserterLight if you need to write large numbers of records with coinciding values in specific fields. Otherwise, using IRepositoryRecordInserter should be more efficient. |
HRESULT PutRecords(
[in] SAFEARRAY(struct contents) recordFields
);
Name | Type | Meaning |
---|---|---|
recordFields |
SAFEARRAY(struct contents) |
Field value structures to convert to records. Missing fields will be filled in based on the tags structure instance associated with this IRepositoryRecordInserterLight. |
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center