HuangBo


Is there any way to provide a readonly custom property in the ProvideComponentProperties() method of a custom PipelineComponent implementation



Re: readonly custom property

Bob Bojanic - MSFT


No, currently we do not have a way to do that. What would you use the read-only properties for

Thanks.







Re: readonly custom property

HuangBo

I need to generate the value for a custom property internally and make it visible to developers, but I don't want them to modify it to ensure the data flow works correctly.
Hope we'll have a way to do that in the future.





Re: readonly custom property

JayH

HuangBo wrote:
I need to generate the value for a custom property internally and make it visible to developers, but I don't want them to modify it to ensure the data flow works correctly.
Hope we'll have a way to do that in the future.


Couldn't you override SetComponentProperty to reject the change




Re: readonly custom property

HuangBo

I was able to do that. But that's not user friendly since it's not really readonly.




Re: readonly custom property

Bob Bojanic - MSFT

Well, for now I would do what Jay suggested.

Feel free to open a request for adding this feature on the connect site.

Thanks.