InitialSessionStateEntryCollection<T>.Remove(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This overload exists so that we can remove items based on the item name, rather than its position in the collection. The type argument can be null but we'll throw an error if we can't distinguish between multiple entries of the same name but different types and the type hasn't been specified. BUGBUG - brucepay - the throw thing is not implemented yet...
public:
void Remove(System::String ^ name, System::Object ^ type);
public:
void Remove(Platform::String ^ name, Platform::Object ^ type);
void Remove(std::wstring const & name, winrt::Windows::Foundation::IInspectable const & type);
public void Remove (string name, object type);
member this.Remove : string * obj -> unit
Public Sub Remove (name As String, type As Object)
Parameters
- name
- String
The name of the element to remove.
- type
- Object
The type of object to remove, can be null to remove any type.