次の方法で共有


SPModule.SPModulePropertyBag.Item property

Gets or sets the value of a property for the module. In C#, this property is the indexer for the SPModule.SPModulePropertyBag class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Default Property Item ( _
    strKey As String _
) As String
    Get
    Set
'Usage
Dim instance As SPModule.SPModulePropertyBag
Dim strKey As String
Dim value As String

value = instance(strKey)

instance(strKey) = value
public string this[
    string strKey
] { get; set; }

Parameters

  • strKey
    Type: System.String

    A string that contains the key that references a value.

Property value

Type: System.String
A string that contains the value.

See also

Reference

SPModule.SPModulePropertyBag class

SPModule.SPModulePropertyBag members

Microsoft.SharePoint namespace