Questions tagged [propertybag]
23 questions
13
votes
2 answers
How can I write a nested arbitrary associative Array value set to a .psd1 file in powershell?
I have a powershell Array object that is programmatically generated, something with arrays inside arrays, inside arrays, sometimes called a "property bag" or a "hashtable", but I think it's natively called an "Array containing Arrays" in the most…

Warren P
- 65,725
- 40
- 181
- 316
11
votes
2 answers
What is the best way to represent a type-safe property bag in a class?
I have a 3rd party application that provides an object with many "attributes", which are simply pairs of (string) keys and values. The value types can be either strings, DateTime, Int32 or Int64.
I need to create my own class to represent this…

yellowblood
- 1,604
- 2
- 17
- 32
5
votes
4 answers
How to clone an object in VB6
I am trying to automatically clone an object without having to instantiate a new one and manually copy every single variable.
I remember back in the day (when I did VB6 everyday) I came up with a method of cloning objects using the PropertyBag,…

AngryHacker
- 59,598
- 102
- 325
- 594
4
votes
2 answers
Using ActiveX PropertyBags from C#
I have created a .NET user control with an ActiveX interface. It works well.
Now, I want to be able to read and write from the property bag for the ActiveX interface.
How would I do this?

Jason
- 16,739
- 23
- 87
- 137
4
votes
4 answers
Property bag for C# class
Accessing c# class properties like javascript language would make life a lot easier.
How we can do it in C#?
For example:
someObject["Property"]="simple string";
Console.WriteLine(someObject["FirstName"]);

r.zarei
- 1,261
- 15
- 35
3
votes
0 answers
EF Core - Navigations and Property Bag
EF Core support Navigations on Property Bag Entity or Navigation on Entity that points to a Property Bag Entity?
Having this class
public class PropertyBagEntityDetail
{
public string StringProperty { get; set; }
public Dictionary

GLuca74
- 105
- 6
3
votes
2 answers
NancyFx DynamicDictionary
I am trying to understand the DynamicDictionary in NancyFX, it looks pretty cool. Does anyone know of a blog post or similar, that goes through the internals of it?
I need a propertybag to pass around objects, that I don't know the content of…

Jay Pete
- 4,123
- 4
- 35
- 51
2
votes
3 answers
Converting VB6 PropertyBag in .NET
For certain file operations we use VB6's PropertyBag object to convert various items to a bytearray via the Content property. We then save the bytearray as part of a binary file. Later when we load the file we read back the file, read in the…

RS Conley
- 7,196
- 1
- 20
- 37
2
votes
0 answers
Using c#, how to extract propertybags created in vb6 sent via MSMQ
I have a legacy application written in vb6 which produces MSMQ messages. The body of these MSMQ messages contain PropertyBags.
My question is: how can I, using C#, retrieve the content of these messages created in vb6, containing propertybags and…

kybrd_chllgd
- 43
- 3
2
votes
1 answer
Remove incompatible spaces from propertybag to solve error when saving form with ActiveX control
I am looking for a way to have VB6 edit a controls' propertybag right before or while the Form is being saved..
We're using an activeX control (AxisMediaControl) that seemingly uses Spaces in it's propertybag names which throws an error when trying…

RkdL
- 112
- 11
2
votes
2 answers
What is the equivalent in VB.Net for saving settings in a VB6 PropertyBag?
I am migrating an application from vb6 to vb.net.
The application has some checkboxes and dropdowns whose values we can store in a file. For this it uses propertybag writeproperties to return a variant which is then written to a file by file…

user3295995
- 21
- 4
2
votes
1 answer
Getting data from a VB6 PropertyBag stored in an Access Database
I have a legacy system I'm porting from VB 6 to C# and am at the stage where I am grabbing data from the old application's database which is in Access and porting it over to the new database in Sql Server.
Several fields in the access database are…

Mike Malter
- 1,018
- 1
- 14
- 38
2
votes
2 answers
VB and C++ ActiveX control persist its information in different way, how can I implement C++ ActiveX control to replace VB ActiveX?
Background
There was an old ActiveX control created by VB. I added this ActiveX control to my Excel workbook and set some properties. These properties were saved when the book was saved. Specifically, they were saved in UserControl_WriteProperties…

Moozz
- 609
- 6
- 18
1
vote
1 answer
PowerShell - SCOM PropertyBag, How to check if already added?
I want to add values to a PropertyBag.
How is it possible to check if the value is already in the PropertyBag?
I know one can use an array, list, etc. But how can I use the $bag/$api object to do this check?
$api = New-Object -comObject…

LaPhi
- 5,675
- 21
- 56
- 78
1
vote
1 answer
How to persist an IPropertyBag to disk
I've successfully obtained an IPropertyBag for the view state of a folder. I obtained it using SHGetViewStatePropertyBag, and I've confirmed that the bag is valid by checking some property values.
What I'd like to do now is persist the property bag…
user13366655