DictionaryExtensionsAsRestrictedAccessDictionaryTKey, TValue Method (IDictionaryTKey, TValue, AccessFlags) |
Creates a shallow restricted access dictionary wrapper around the given dictionary. Only access specified by the flags is allowed.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static RestrictedAccessDictionary<TKey, TValue> AsRestrictedAccessDictionary<TKey, TValue>(
this IDictionary<TKey, TValue> dictionary,
AccessFlags flags
)
<ExtensionAttribute>
Public Shared Function AsRestrictedAccessDictionary(Of TKey, TValue) (
dictionary As IDictionary(Of TKey, TValue),
flags As AccessFlags
) As RestrictedAccessDictionary(Of TKey, TValue)
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
static RestrictedAccessDictionary<TKey, TValue>^ AsRestrictedAccessDictionary(
IDictionary<TKey, TValue>^ dictionary,
AccessFlags flags
)
[<ExtensionAttribute>]
static member AsRestrictedAccessDictionary :
dictionary : IDictionary<'TKey, 'TValue> *
flags : AccessFlags -> RestrictedAccessDictionary<'TKey, 'TValue>
Parameters
- dictionary
- Type: System.Collections.GenericIDictionaryTKey, TValue
[Missing <param name="dictionary"/> documentation for "M:Bio.Util.DictionaryExtensions.AsRestrictedAccessDictionary``2(System.Collections.Generic.IDictionary{``0,``1},Bio.Util.AccessFlags)"]
- flags
- Type: Bio.UtilAccessFlags
[Missing <param name="flags"/> documentation for "M:Bio.Util.DictionaryExtensions.AsRestrictedAccessDictionary``2(System.Collections.Generic.IDictionary{``0,``1},Bio.Util.AccessFlags)"]
Type Parameters
- TKey
[Missing <typeparam name="TKey"/> documentation for "M:Bio.Util.DictionaryExtensions.AsRestrictedAccessDictionary``2(System.Collections.Generic.IDictionary{``0,``1},Bio.Util.AccessFlags)"]
- TValue
[Missing <typeparam name="TValue"/> documentation for "M:Bio.Util.DictionaryExtensions.AsRestrictedAccessDictionary``2(System.Collections.Generic.IDictionary{``0,``1},Bio.Util.AccessFlags)"]
Return Value
Type:
RestrictedAccessDictionaryTKey,
TValue[Missing <returns> documentation for "M:Bio.Util.DictionaryExtensions.AsRestrictedAccessDictionary``2(System.Collections.Generic.IDictionary{``0,``1},Bio.Util.AccessFlags)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDictionaryTKey,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also