summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/ICustomProperty.cs
blob: 88472a46b801ff5a2e41070700b6cf5f8eb76c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//

using System;
using System.Diagnostics.Contracts;

namespace System.Runtime.InteropServices.WindowsRuntime
{
    [ComImport]
    [Guid("30DA92C0-23E8-42A0-AE7C-734A0E5D2782")]
    [WindowsRuntimeImport]
    internal interface ICustomProperty
    {
        Type Type
        {
            [Pure]
            get;
        }
        
        string Name 
        { 
            [Pure]
            get; 
        }

        [Pure]
        object GetValue(object target);

        void SetValue(object target, object value);
        
        [Pure]
        object GetValue(object target, object indexValue);
        
        void SetValue(object target, object value, object indexValue);
        
        bool CanWrite 
        { 
            [Pure]
            get; 
        }

        bool CanRead  
        { 
            [Pure]
            get; 
        }               
    }
}